This commit is contained in:
Arthur Schiwon 2013-04-02 16:25:12 +02:00
parent 48afa39292
commit e25c1f3130
1 changed files with 7 additions and 3 deletions

View File

@ -36,11 +36,15 @@ if (OC::checkUpgrade(false)) {
* @param UpdateWatcher $watcher
*/
function __doFileCacheUpgrade($watcher) {
$query = \OC_DB::prepare('
try {
$query = \OC_DB::prepare('
SELECT DISTINCT `user`
FROM `*PREFIX*fscache`
');
$result = $query->execute();
');
$result = $query->execute();
} catch (\Exception $e) {
return;
}
$users = $result->fetchAll();
if(count($users) == 0) {
return;