diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 005d38cd2c..75f92e9e86 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -196,7 +196,7 @@ function menu_print_menu (&$menu) { else $visible = false; } - elseif ((array_search($sec2, $sub['pages']) !== false) && isset($sub['pages'])) { + elseif (isset($sub['pages']) && (array_search($sec2, $sub['pages']) !== false)) { $class .= 'submenu_selected selected'; $menu_selected = true; $selected = true;