From 50f15dc5076acd2301563552506f7c0fa101832f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 14 Apr 2015 09:37:28 +0200 Subject: [PATCH] Fixed errors php in menu --- pandora_console/include/functions_menu.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 03e0705cc1..248208be7d 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -32,6 +32,7 @@ function menu_print_menu (&$menu) { $sec = (string) get_parameter ('sec'); $sec2 = (string) get_parameter ('sec2'); + $menu_selected = false; $allsec2 = explode('sec2=', $_SERVER['REQUEST_URI']); if (isset($allsec2[1])) { @@ -206,7 +207,7 @@ function menu_print_menu (&$menu) { //This is an external link $submenu_output .= '
  • '; - if (isset ($sub["type"]) && $sub["subtype"] == "nolink") { + if (isset ($sub["subtype"]) && $sub["subtype"] == "nolink") { $submenu_output .= '
    '; } else @@ -321,7 +322,8 @@ function menu_print_menu (&$menu) { if (isset($sub2['title'])) $sub_title = $sub2['title']; - + else + $sub_title = ''; $submenu2_list .= '
  • '; $submenu2_list .= '
    '. $sub2["text"].'
  • ';