summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index e9b2addea38..187d3f38afc 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -416,7 +416,9 @@ class Shared_Cache extends Cache {
// bubble up to source cache
$sourceCache = $this->getSourceCache($path);
$parent = dirname($this->files[$path]);
- $sourceCache->correctFolderSize($parent);
+ if ($sourceCache) {
+ $sourceCache->correctFolderSize($parent);
+ }
}
}