Reorder a conditional operation for avoid PHP warnings.
This commit is contained in:
parent
90c024eb9c
commit
0015ba5c5a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue