Cache: fix scanner trying to use existing data when file isn't in cache

This commit is contained in:
Robin Appelman 2013-02-12 16:48:21 +01:00
parent f2baf1ae0e
commit b54dcd1999
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ class Scanner {
$this->scanFile($parent);
}
}
if ($checkExisting) {
$cacheData = $this->cache->get($file);
if ($checkExisting and $cacheData = $this->cache->get($file)) {
if ($data['size'] === -1) {
$data['size'] = $cacheData['size'];
}