mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-29 21:09:10 +02: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;
|
$sThemeId = null;
|
||||||
|
|
||||||
try {
|
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);
|
$sThemeId = appUserPreferences::GetPref('backoffice_theme', null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user