isset-error

isset reset
This commit is contained in:
g7sim 2021-12-25 16:11:54 +01:00
parent 6122ec4612
commit c40e93482b

View file

@ -71,7 +71,9 @@ class ThemeCajon_Settings{
$layout = isset($page->TitleInfo['gpLayout']) ? $page->TitleInfo['gpLayout'] : 'default';
$layout = isset($page->gpLayout) ? $page->gpLayout : $layout;
$default_layout = $config['gpLayout'];
$current_theme_name = $layout == 'default' ? isset($gpLayouts[$default_layout]['name']) : isset($gpLayouts[$layout]['name']);
$gplayoutsvar1 = $gpLayouts[$default_layout]['name'];
$gplayoutsvar2 = $gpLayouts[$layout]['name'];
$current_theme_name = $layout == 'default' ? $gplayoutsvar1 : $gplayoutsvar2;
$is_current_theme = ($current_theme_name == $theme_name);
return $is_current_theme;
}