diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c169cd3611..55517c2d84 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-07-21 Sergio Martin + + * include/functions_menu.php: Fixed a bug of the side menu + when the url have no sec2 parameter + 2011-07-21 Sergio Martin * include/functions_groups.php diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 18048a5133..b17ffb90d1 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -34,7 +34,12 @@ function menu_print_menu (&$menu) { $sec2 = (string) get_parameter ('sec2'); $allsec2 = explode('sec2=', $_SERVER['REQUEST_URI']); - $allsec2 = $allsec2[1]; + if(isset($allsec2[1])) { + $allsec2 = $allsec2[1]; + } + else { + $allsec2 = $sec2; + } echo '';