Reorder a conditional operation for avoid PHP warnings.

This commit is contained in:
mdtrooper 2016-01-18 15:12:52 +01:00
parent 90c024eb9c
commit 0015ba5c5a
1 changed files with 1 additions and 1 deletions

View File

@ -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;