Skip to content

Commit eb7ca74

Browse files
committed
do not show menus that do not contain any tools
(cherry picked from commit 7cb9743)
1 parent 24e7e96 commit eb7ca74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: web/menu.php

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
$path .= '/index.php';
101101
$single_module = true;
102102
$onclick = "SwitchMenu('".$menuitem."');top.frames['main_body'].location.href='".$path."'";
103+
} else if (count($menu_link_text) == 0) {
104+
continue;
103105
} else {
104106
$single_module = false;
105107
$onclick = "SwitchMenu('".$menuitem."')";

0 commit comments

Comments
 (0)