check that we know the parent

This commit is contained in:
Robin Appelman 2015-04-07 16:02:37 +02:00
parent 6b5daca7b7
commit 8688660825
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}
}
}