]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Updater if used with MDB2
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Jul 2013 18:09:55 +0000 (20:09 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Jul 2013 18:09:55 +0000 (20:09 +0200)
lib/updater.php

index 93a8c49128e6810931f54c5b8c94279c5cefa139..cbba543217bcca59450c6b56ae924dbdd7ce9f98 100644 (file)
@@ -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();