From e5d458c0683acb409083a0e3f1baa4698ececda6 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Fri, 22 Jun 2012 10:46:49 +0200 Subject: [PATCH] Correct File cache error with postgresql --- lib/filecache.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filecache.php b/lib/filecache.php index da9baa020a..b61068e795 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -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.'=?'; }