From 40de36a8f3dfba5dc6297adbd6c92d8b64c57190 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 21 Apr 2013 00:58:15 +0200 Subject: [PATCH] Try to supress pre-upgrade backgroundjob error --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 631f934154..3568f48644 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) { }