diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-11-25 10:05:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 10:05:23 +0100 |
commit | da45eee63417882febbc30540b510e67d81b87af (patch) | |
tree | f54d6eebfa6669eae1cfbae2a7bceb98dee95650 /apps | |
parent | 31fced969853345eec75018a44e514db8f4ab7f7 (diff) | |
parent | 6e3ea09b1cc736060dda312ae03ae5194286d0a2 (diff) | |
download | nextcloud-server-da45eee63417882febbc30540b510e67d81b87af.tar.gz nextcloud-server-da45eee63417882febbc30540b510e67d81b87af.zip |
Merge pull request #17993 from waleczny/patch-1
Get first element of nodes array
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 90a76e2223d..e7b9f5e6044 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -181,7 +181,7 @@ class ShareAPIController extends OCSController { throw new NotFoundException(); } } else { - $node = $nodes[0]; + $node = reset($nodes); } } |