aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index e3bcc7d0000..d956f34dc48 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -110,7 +110,9 @@ class OC_FileCache{
$queryParts=array();
foreach(array('size','mtime','ctime','mimetype','encrypted','versioned','writable') as $attribute){
if(isset($data[$attribute])){
- $arguments[]=$data[$attribute];
+ //Convert to int it args are false
+ if($data[$attribute] === false) $arguments[] = 0;
+ else $arguments[] = $data[$attribute];
$queryParts[]=$attribute.'=?';
}
}