From: Arthur Schiwon Date: Tue, 23 Jul 2013 18:09:55 +0000 (+0200) Subject: Fix Updater if used with MDB2 X-Git-Tag: v5.0.10~12^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99113a78f0f67ade4a78006d6a86aaf32849c9df;p=nextcloud-server.git Fix Updater if used with MDB2 --- diff --git a/lib/updater.php b/lib/updater.php index 93a8c49128e..cbba543217b 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -123,7 +123,12 @@ class OC_Updater extends BasicEmitter { FROM `*PREFIX*fscache` '); $result = $query->execute(); + if(\OCP\DB::isError($result)) { + //MDB2 does not throw Exception by itself + throw new \Exception($result->getMessage()); + } } catch (\Exception $e) { + //No such table, i.e. filecache upgrade already proceeded return; } $users = $result->fetchAll();