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)