Skip to content

Commit 46ae8a7

Browse files
committed
changes accesslist default result from empty array to skeleton
uses same skeleton as in nextcloud server sharehelper to prevent access array offset errors Signed-off-by: Jan Messer <[email protected]>
1 parent bbdcf11 commit 46ae8a7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lib/FilesHooks.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,17 @@ protected function getUserPathsFromPath($path, $uidOwner) {
573573
try {
574574
$node = $this->rootFolder->getUserFolder($uidOwner)->get($path);
575575
} catch (NotFoundException $e) {
576-
return [];
576+
return [
577+
'users' => [],
578+
'remotes' => [],
579+
];
577580
}
578581

579582
if (!$node instanceof Node) {
580-
return [];
583+
return [
584+
'users' => [],
585+
'remotes' => [],
586+
];
581587
}
582588

583589
$accessList = $this->shareHelper->getPathsForAccessList($node);

0 commit comments

Comments
 (0)