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 */
|
/** @var Node[] $nodes */
|
||||||
$nodes = [];
|
$nodes = [];
|
||||||
while ($node->getPath() !== $basePath) {
|
while ($node->getPath() !== $basePath) {
|
||||||
$nodes[] = $node;
|
|
||||||
$node = $node->getParent();
|
$node = $node->getParent();
|
||||||
|
$nodes[] = $node;
|
||||||
}
|
}
|
||||||
|
|
||||||
// for each nodes, retrieve shares.
|
// for each nodes, retrieve shares.
|
||||||
|
|
Loading…
Reference in New Issue