diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2020-01-08 08:56:14 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2020-01-08 08:56:14 -0100 |
commit | 554c4a7cf8d7ce81bb198e19acdb44997bc3f9b4 (patch) | |
tree | 5e9fea393257b1645e439641295fe07a159c06ed /apps | |
parent | 69ae7abe72fd032adbec1c7dc01fca64aea2fbe8 (diff) | |
download | nextcloud-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.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 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. |