From 6b5daca7b7732edc1a30bcca28827897d9558130 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 1 Apr 2015 16:12:01 +0200 Subject: [PATCH] check for source cache --- apps/files_sharing/lib/cache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index e9b2addea3..187d3f38af 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); + } } }