Don't load the apps when we need to upgrade

The loading can call functions that require new tables, like oc_jobs
This commit is contained in:
Bart Visscher 2013-06-28 17:23:40 +02:00
parent 6127fee5aa
commit 9a50a8f0cc
1 changed files with 1 additions and 1 deletions

View File

@ -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 {