summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-11 13:24:56 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-11 13:33:48 +0100
commitd84c3cd014fd73930cd15aee64d57aad3383b2aa (patch)
treef8a50fc855546c2cbaf84c9b52cc2c017a8b55be /lib
parent299649b40e1a87eee7bcead74b269fe8c452e04d (diff)
downloadnextcloud-server-d84c3cd014fd73930cd15aee64d57aad3383b2aa.tar.gz
nextcloud-server-d84c3cd014fd73930cd15aee64d57aad3383b2aa.zip
Cache: actually use parameter
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index b27b3555c91..ec216264429 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -74,7 +74,7 @@ class Scanner {
$this->scanFile($parent);
}
}
- if ($data['size'] === -1 and $cacheData = $this->cache->get($file)) {
+ if ($checkExisting and $data['size'] === -1 and $cacheData = $this->cache->get($file)) {
$data['size'] = $cacheData['size'];
}
$this->cache->put($file, $data);