Skip to content
Snippets Groups Projects
Commit f1e4c845 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix duplicates showing up in the filecache

parent 1c0e72cd
Branches
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ class OC_FileCache{
}
$path=$root.$path;
$parent=self::getParentId($path);
$id=self::getId($path,'');
$id=self::getFileId($path);
if(isset(OC_FileCache::$savedData[$path])){
$data=array_merge(OC_FileCache::$savedData[$path],$data);
unset(OC_FileCache::$savedData[$path]);
......@@ -130,9 +130,11 @@ 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;
else $arguments[] = $data[$attribute];
if($data[$attribute] === false){
$arguments[] = 0;
}else{
$arguments[] = $data[$attribute];
}
$queryParts[]=$attribute.'=?';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment