From: Robin Appelman Date: Tue, 7 Apr 2015 14:02:37 +0000 (+0200) Subject: check that we know the parent X-Git-Tag: v8.1.0alpha1~19^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86886608256f6c480269366f83f83fa97594a5dd;p=nextcloud-server.git check that we know the parent --- diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index 187d3f38afc..2f982ec9dc6 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -415,9 +415,11 @@ class Shared_Cache extends Cache { } else { // bubble up to source cache $sourceCache = $this->getSourceCache($path); - $parent = dirname($this->files[$path]); - if ($sourceCache) { - $sourceCache->correctFolderSize($parent); + if (isset($this->files[$path])) { + $parent = dirname($this->files[$path]); + if ($sourceCache) { + $sourceCache->correctFolderSize($parent); + } } } }