Correct File cache error with postgresql

This commit is contained in:
Brice Maron 2012-06-22 10:46:49 +02:00
parent ca6339c480
commit e5d458c068
1 changed files with 3 additions and 0 deletions

View File

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