Correct File cache error with postgresql
This commit is contained in:
parent
61adae1e49
commit
2a6a155e23
1 changed files with 3 additions and 0 deletions
|
@ -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.'=?';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue