diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-22 10:46:49 +0200 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-24 19:52:30 +0000 |
commit | 2a6a155e23626fbbc4b04917b52e2f918e10effc (patch) | |
tree | 9935a7d77a5d67a3798ca398df464dfa9f7eee1b /lib/filecache.php | |
parent | 61adae1e49b67cfe79d5daf2bc9e649b343090bb (diff) | |
download | nextcloud-server-2a6a155e23626fbbc4b04917b52e2f918e10effc.tar.gz nextcloud-server-2a6a155e23626fbbc4b04917b52e2f918e10effc.zip |
Correct File cache error with postgresql
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index e3bcc7d0000..13d7b34c9d7 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -110,6 +110,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.'=?'; } |