summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-01 16:12:01 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-13 17:10:02 +0200
commit6b5daca7b7732edc1a30bcca28827897d9558130 (patch)
tree2b3b85e1fb106b95728bcb301e616863a8d408ce /apps
parentcaadc8cdd9044236388dfb557ba21a5de7f147fc (diff)
downloadnextcloud-server-6b5daca7b7732edc1a30bcca28827897d9558130.tar.gz
nextcloud-server-6b5daca7b7732edc1a30bcca28827897d9558130.zip
check for source cache
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);
+ }
}
}