From c8b5ecad06935b856d5ea92dc4ce4513ac80ffb5 Mon Sep 17 00:00:00 2001 From: "manuel.montes" Date: Tue, 12 Jun 2018 17:41:46 +0200 Subject: [PATCH] Fixed submenu2 in functions_menu.php --- pandora_console/include/functions_menu.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 7481fae43d..a07bde5528 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -323,14 +323,7 @@ function menu_print_menu (&$menu) { //Print second level submenu if (isset($sub['sub2'])) { - - //Display if father is selected - $display = "style='display:none;'"; - - if ($selected) { - $display = ""; - } - + $submenu2_list = ''; $count_sub2 = 0; @@ -374,12 +367,9 @@ function menu_print_menu (&$menu) { // Added a top on inline styles $top = menu_calculate_top($config['count_main_menu'], $count_sub, $count_sub2); - if ($top !== 0) { - $display = rtrim($display, "'"); - $display .= "top: " . $top . "px;'"; - } + //Add submenu2 to submenu string - $submenu_output .= "