summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-07 16:02:37 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-13 17:10:02 +0200
commit86886608256f6c480269366f83f83fa97594a5dd (patch)
treead41ab00610bc84a2b7fb1b2db9a1147067a6909 /apps
parent6b5daca7b7732edc1a30bcca28827897d9558130 (diff)
downloadnextcloud-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.php8
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);
+ }
}
}
}