fix upgrade error for instances not upgraded from 4.5

remotes/origin/stable5
Arthur Schiwon 13 years ago
parent 8231f657d9
commit 22c8194cc8
  1. 14
      core/ajax/update.php

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

Loading…
Cancel
Save