Bug dans la classe de menu
This commit is contained in:
parent
29dac33896
commit
9103f677fd
|
@ -60,6 +60,11 @@ class m_menu {
|
||||||
|
|
||||||
foreach( $lst as $k => $v ) {
|
foreach( $lst as $k => $v ) {
|
||||||
|
|
||||||
|
if (empty($v)) {
|
||||||
|
unset($lst[$k]);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Set the javascript toggle link for menu asking for it
|
// Set the javascript toggle link for menu asking for it
|
||||||
if ($v['link'] == 'toggle') {
|
if ($v['link'] == 'toggle') {
|
||||||
$lst[$k]['link'] = 'javascript:menu_toggle(\'menu-'.$k.'\');';
|
$lst[$k]['link'] = 'javascript:menu_toggle(\'menu-'.$k.'\');';
|
||||||
|
|
Loading…
Reference in New Issue