Correct File cache error with postgresql
This commit is contained in:
parent
ca6339c480
commit
e5d458c068
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue