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

Correct File cache error with postgresql

parent 61adae1e
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,9 @@ class OC_FileCache{ ...@@ -110,6 +110,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