mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°3936 - Add protection to avoid crashes in certain conditions since d6695d3a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user