moving ->getParent earlier
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
69ae7abe72
commit
554c4a7cf8
|
@ -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…
Reference in New Issue