Merge pull request #17993 from waleczny/patch-1
Get first element of nodes array
This commit is contained in:
commit
da45eee634
|
@ -181,7 +181,7 @@ class ShareAPIController extends OCSController {
|
|||
throw new NotFoundException();
|
||||
}
|
||||
} else {
|
||||
$node = $nodes[0];
|
||||
$node = reset($nodes);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue