diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-07 16:02:37 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-13 17:10:02 +0200 |
commit | 86886608256f6c480269366f83f83fa97594a5dd (patch) | |
tree | ad41ab00610bc84a2b7fb1b2db9a1147067a6909 /apps | |
parent | 6b5daca7b7732edc1a30bcca28827897d9558130 (diff) | |
download | nextcloud-server-86886608256f6c480269366f83f83fa97594a5dd.tar.gz nextcloud-server-86886608256f6c480269366f83f83fa97594a5dd.zip |
check that we know the parent
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 8 |
1 files changed, 5 insertions, 3 deletions
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); + } } } } |