From: Brice Maron Date: Fri, 22 Jun 2012 08:46:49 +0000 (+0200) Subject: Correct File cache error with postgresql X-Git-Tag: v4.5.0beta1~74^2~403^2~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2a6a155e23626fbbc4b04917b52e2f918e10effc;p=nextcloud-server.git Correct File cache error with postgresql --- diff --git a/lib/filecache.php b/lib/filecache.php index e3bcc7d0000..13d7b34c9d7 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -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.'=?'; }