From 9a50a8f0cc680e9bb611bc92469c4b156c3a989b Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Fri, 28 Jun 2013 17:23:40 +0200
Subject: [PATCH] Don't load the apps when we need to upgrade

The loading can call functions that require new tables, like oc_jobs
---
 lib/base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index fd4870974f..c95eac0d2f 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -472,7 +472,7 @@ class OC {
 		// This includes plugins for users and filesystems as well
 		global $RUNTIME_NOAPPS;
 		global $RUNTIME_APPTYPES;
-		if (!$RUNTIME_NOAPPS) {
+		if (!$RUNTIME_NOAPPS && !self::checkUpgrade(false)) {
 			if ($RUNTIME_APPTYPES) {
 				OC_App::loadApps($RUNTIME_APPTYPES);
 			} else {
-- 
GitLab