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,12 +415,14 @@ class Shared_Cache extends Cache {
} else {
// bubble up to source cache
$sourceCache = $this->getSourceCache($path);
if (isset($this->files[$path])) {
$parent = dirname($this->files[$path]);
if ($sourceCache) {
$sourceCache->correctFolderSize($parent);
}
}
}
}
/**
* get the size of a folder and set it in the cache