summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-22 10:46:49 +0200
committerBrice Maron <brice@bmaron.net>2012-06-24 19:52:30 +0000
commit2a6a155e23626fbbc4b04917b52e2f918e10effc (patch)
tree9935a7d77a5d67a3798ca398df464dfa9f7eee1b /lib/filecache.php
parent61adae1e49b67cfe79d5daf2bc9e649b343090bb (diff)
downloadnextcloud-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.php3
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.'=?';
}