]> 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>
Sun, 24 Jun 2012 19:52:30 +0000 (19:52 +0000)
lib/filecache.php

index e3bcc7d00006988ec6bd3dd57d902b64985735c5..13d7b34c9d72e33c4e313b9e7c9ff91086d7bc08 100644 (file)
@@ -110,6 +110,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.'=?';
                        }