diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-22 10:46:49 +0200 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-22 10:46:49 +0200 |
commit | e5d458c0683acb409083a0e3f1baa4698ececda6 (patch) | |
tree | f925c106d8c4ee7aaf65b747959b15f9b72d02fe | |
parent | ca6339c480aeaa41dc82d677204abfaf77152f24 (diff) | |
download | nextcloud-server-e5d458c0683acb409083a0e3f1baa4698ececda6.tar.gz nextcloud-server-e5d458c0683acb409083a0e3f1baa4698ececda6.zip |
Correct File cache error with postgresql
-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 da9baa020a2..b61068e7954 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.'=?'; } |