diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-01 16:12:01 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-13 17:10:02 +0200 |
commit | 6b5daca7b7732edc1a30bcca28827897d9558130 (patch) | |
tree | 2b3b85e1fb106b95728bcb301e616863a8d408ce /apps | |
parent | caadc8cdd9044236388dfb557ba21a5de7f147fc (diff) | |
download | nextcloud-server-6b5daca7b7732edc1a30bcca28827897d9558130.tar.gz nextcloud-server-6b5daca7b7732edc1a30bcca28827897d9558130.zip |
check for source cache
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 4 |
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); + } } } |