2011-07-21 Sergio Martin <sergio.martin@artica.es>

* include/functions_menu.php: Fixed a bug of the side menu
	when the url have no sec2 parameter



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4607 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-21 08:59:05 +00:00
parent da222177b4
commit 3163f94f38
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_menu.php: Fixed a bug of the side menu
when the url have no sec2 parameter
2011-07-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_groups.php

View File

@ -34,7 +34,12 @@ function menu_print_menu (&$menu) {
$sec2 = (string) get_parameter ('sec2');
$allsec2 = explode('sec2=', $_SERVER['REQUEST_URI']);
if(isset($allsec2[1])) {
$allsec2 = $allsec2[1];
}
else {
$allsec2 = $sec2;
}
echo '<ul'.(isset ($menu['class']) ? ' class="'.$menu['class'].'"' : '').'>';