Fixes update of shared files with mirall because it dose not update all methadata for a file

remotes/origin/stable5
Maximilian Ruta 12 years ago
parent 486b8013d0
commit ac4cafcfc7
  1. 12
      lib/filecache.php

@ -137,11 +137,13 @@ class OC_FileCache{
} }
$arguments[]=$id; $arguments[]=$id;
$sql = 'UPDATE `*PREFIX*fscache` SET '.implode(' , ', $queryParts).' WHERE `id`=?'; if(!empty($queryParts)) {
$query=OC_DB::prepare($sql); $sql = 'UPDATE `*PREFIX*fscache` SET '.implode(' , ', $queryParts).' WHERE `id`=?';
$result=$query->execute($arguments); $query=OC_DB::prepare($sql);
if(OC_DB::isError($result)) { $result=$query->execute($arguments);
OC_Log::write('files', 'error while updating file('.$id.') in cache', OC_Log::ERROR); if(OC_DB::isError($result)) {
OC_Log::write('files', 'error while updating file('.$id.') in cache', OC_Log::ERROR);
}
} }
} }

Loading…
Cancel
Save