From bb892cc1800636fe3b1b0672003d40844d9f5afd Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 27 Aug 2020 17:10:37 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03078=20-=20Fix=20error=20on=20login=20wh?= =?UTF-8?q?ile=20in=20maintenance=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/themehandler.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/themehandler.class.inc.php b/application/themehandler.class.inc.php index de2fb21ca..192cbe1da 100644 --- a/application/themehandler.class.inc.php +++ b/application/themehandler.class.inc.php @@ -57,6 +57,10 @@ class ThemeHandler { try { + if (is_null(MetaModel::GetConfig())) + { + throw new CoreException('no config'); + } $sThemeId = MetaModel::GetConfig()->Get('backoffice_default_theme'); } catch(CoreException $oCompileException)