Skip to content
Snippets Groups Projects
Commit e5d458c0 authored by Brice Maron's avatar Brice Maron
Browse files

Correct File cache error with postgresql

parent ca6339c4
Branches
No related tags found
No related merge requests found
...@@ -129,6 +129,9 @@ class OC_FileCache{ ...@@ -129,6 +129,9 @@ class OC_FileCache{
$queryParts=array(); $queryParts=array();
foreach(array('size','mtime','ctime','mimetype','encrypted','versioned','writable') as $attribute){ foreach(array('size','mtime','ctime','mimetype','encrypted','versioned','writable') as $attribute){
if(isset($data[$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]; $arguments[]=$data[$attribute];
$queryParts[]=$attribute.'=?'; $queryParts[]=$attribute.'=?';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment