From: Robin Appelman Date: Sat, 20 Apr 2013 22:58:15 +0000 (+0200) Subject: Try to supress pre-upgrade backgroundjob error X-Git-Tag: v6.0.0alpha2~695^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40de36a8f3dfba5dc6297adbd6c92d8b64c57190;p=nextcloud-server.git Try to supress pre-upgrade backgroundjob error --- diff --git a/lib/base.php b/lib/base.php index 631f9341546..3568f48644c 100644 --- a/lib/base.php +++ b/lib/base.php @@ -562,7 +562,7 @@ class OC { public static function registerCacheHooks() { // register cache cleanup jobs try { //if this is executed before the upgrade to the new backgroundjob system is completed it will throw an exception - \OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC'); + @\OCP\BackgroundJob::registerJob('OC_Cache_FileGlobalGC'); } catch (Exception $e) { }