check for source cache

This commit is contained in:
Robin Appelman 2015-04-01 16:12:01 +02:00
parent caadc8cdd9
commit 6b5daca7b7
1 changed files with 3 additions and 1 deletions

View File

@ -416,7 +416,9 @@ class Shared_Cache extends Cache {
// bubble up to source cache
$sourceCache = $this->getSourceCache($path);
$parent = dirname($this->files[$path]);
$sourceCache->correctFolderSize($parent);
if ($sourceCache) {
$sourceCache->correctFolderSize($parent);
}
}
}