From b54dcd1999b0ce447dc6920ac8cd361095b8346d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 12 Feb 2013 16:48:21 +0100 Subject: [PATCH] Cache: fix scanner trying to use existing data when file isn't in cache --- lib/files/cache/scanner.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index 9f72e20614..88f208547f 100644 --- a/lib/files/cache/scanner.php +++ b/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']; }