Browse Source

moving ->getParent earlier

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/18739/head
Maxence Lange 6 years ago
parent
commit
554c4a7cf8
  1. 2
      apps/files_sharing/lib/Controller/ShareAPIController.php

2
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.

Loading…
Cancel
Save