]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct File cache error with postgresql
authorBrice Maron <brice@bmaron.net>
Fri, 22 Jun 2012 08:46:49 +0000 (10:46 +0200)
committerBrice Maron <brice@bmaron.net>
Fri, 22 Jun 2012 08:46:49 +0000 (10:46 +0200)
lib/filecache.php

index da9baa020a2c5e28b9cb72452c8d1ea70e4262ed..b61068e795493a50b48a4ffef568afe90e263182 100644 (file)
@@ -129,6 +129,9 @@ class OC_FileCache{
                $queryParts=array();
                foreach(array('size','mtime','ctime','mimetype','encrypted','versioned','writable') as $attribute){
                        if(isset($data[$attribute])){
+                               //Convert to int it args are false
+                               if($data[$attribute] === false) $arguments[] = 0;
+                               else $arguments[] = $data[$attribute];
                                $arguments[]=$data[$attribute];
                                $queryParts[]=$attribute.'=?';
                        }