Correct File cache error with postgresql

This commit is contained in:
Brice Maron 2012-06-22 10:46:49 +02:00
parent 61adae1e49
commit 2a6a155e23

View 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.'=?';
}