summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-22 10:46:49 +0200
committerBrice Maron <brice@bmaron.net>2012-06-22 10:46:49 +0200
commite5d458c0683acb409083a0e3f1baa4698ececda6 (patch)
treef925c106d8c4ee7aaf65b747959b15f9b72d02fe
parentca6339c480aeaa41dc82d677204abfaf77152f24 (diff)
downloadnextcloud-server-e5d458c0683acb409083a0e3f1baa4698ececda6.tar.gz
nextcloud-server-e5d458c0683acb409083a0e3f1baa4698ececda6.zip
Correct File cache error with postgresql
-rw-r--r--lib/filecache.php3
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.'=?';
}