summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2020-01-08 08:56:14 -0100
committerMaxence Lange <maxence@artificial-owl.com>2020-01-08 08:56:14 -0100
commit554c4a7cf8d7ce81bb198e19acdb44997bc3f9b4 (patch)
tree5e9fea393257b1645e439641295fe07a159c06ed /apps
parent69ae7abe72fd032adbec1c7dc01fca64aea2fbe8 (diff)
downloadnextcloud-server-554c4a7cf8d7ce81bb198e19acdb44997bc3f9b4.tar.gz
nextcloud-server-554c4a7cf8d7ce81bb198e19acdb44997bc3f9b4.zip
moving ->getParent earlier
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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 b71d3dac3a7..ceda0e46c0c 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -865,8 +865,8 @@ class ShareAPIController extends OCSController {
/** @var Node[] $nodes */
$nodes = [];
while ($node->getPath() !== $basePath) {
- $nodes[] = $node;
$node = $node->getParent();
+ $nodes[] = $node;
}
// for each nodes, retrieve shares.