summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-11-25 10:05:23 +0100
committerGitHub <noreply@github.com>2019-11-25 10:05:23 +0100
commitda45eee63417882febbc30540b510e67d81b87af (patch)
treef54d6eebfa6669eae1cfbae2a7bceb98dee95650 /apps
parent31fced969853345eec75018a44e514db8f4ab7f7 (diff)
parent6e3ea09b1cc736060dda312ae03ae5194286d0a2 (diff)
downloadnextcloud-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.php2
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);
}
}