mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #17993 from waleczny/patch-1
Get first element of nodes array
This commit is contained in:
commit
da45eee634
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ class ShareAPIController extends OCSController {
|
|||
throw new NotFoundException();
|
||||
}
|
||||
} else {
|
||||
$node = $nodes[0];
|
||||
$node = reset($nodes);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue