Correct File cache error with postgresql

remotes/origin/stable4
Brice Maron 13 years ago
parent ca6339c480
commit e5d458c068
  1. 3
      lib/filecache.php

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

Loading…
Cancel
Save