summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/scanner.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/scanner.php')
-rw-r--r--apps/files_sharing/lib/scanner.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/scanner.php b/apps/files_sharing/lib/scanner.php
index 8b32d014a08..2e951423aa2 100644
--- a/apps/files_sharing/lib/scanner.php
+++ b/apps/files_sharing/lib/scanner.php
@@ -42,8 +42,10 @@ class SharedScanner extends Scanner {
*/
public function getData($path) {
$data = parent::getData($path);
- $sourcePath = $this->storage->getSourcePath($path);
- list($sourceStorage, $internalPath) = \OC\Files\Filesystem::resolvePath($sourcePath);
+ if ($data === null) {
+ return null;
+ }
+ list($sourceStorage, $internalPath) = $this->storage->resolvePath($path);
$data['permissions'] = $sourceStorage->getPermissions($internalPath);
return $data;
}