diff --git a/lib/FilesHooks.php b/lib/FilesHooks.php index 31ef4a08d..5b010139b 100755 --- a/lib/FilesHooks.php +++ b/lib/FilesHooks.php @@ -576,11 +576,17 @@ protected function getUserPathsFromPath($path, $uidOwner) { try { $node = $this->rootFolder->getUserFolder($uidOwner)->get($path); } catch (NotFoundException $e) { - return []; + return [ + 'users' => [], + 'remotes' => [], + ]; } if (!$node instanceof Node) { - return []; + return [ + 'users' => [], + 'remotes' => [], + ]; } $accessList = $this->shareHelper->getPathsForAccessList($node);