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

remotes/origin/stable5
Robin Appelman 13 years ago
parent f2baf1ae0e
commit b54dcd1999
  1. 3
      lib/files/cache/scanner.php

@ -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'];
}

Loading…
Cancel
Save