diff --git a/lib/filecache.php b/lib/filecache.php
index 13d7b34c9d72e33c4e313b9e7c9ff91086d7bc08..d956f34dc48790be0611be8729751c0102786922 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -111,9 +111,8 @@ class OC_FileCache{
 		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;
+				if($data[$attribute] === false) $arguments[] = 0;
 				else $arguments[] = $data[$attribute];
-				$arguments[]=$data[$attribute];
 				$queryParts[]=$attribute.'=?';
 			}
 		}