N°3936 - Add protection to avoid crashes in certain conditions since d6695d3a

This commit is contained in:
Molkobain
2021-04-12 09:06:56 +02:00
parent 067cbe2afa
commit e2f301827a

View File

@@ -96,7 +96,8 @@ class ThemeHandler
$sThemeId = null;
try {
if (true === MetaModel::GetConfig()->Get('user_preferences.allow_backoffice_theme_override')) {
$oConf = MetaModel::GetConfig();
if ((!is_null($oConf)) && (true === $oConf->Get('user_preferences.allow_backoffice_theme_override'))) {
$sThemeId = appUserPreferences::GetPref('backoffice_theme', null);
}
}