diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_html.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index d6bf837b9..f1b76169f 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -361,8 +361,8 @@ function get_html_menu_category($categories) } else if ($level < $ref_level) { - $menu.= ' - </ul>'; + // we may have to close more than one level at the same time... + $menu.= str_repeat("\n</ul>",($ref_level-$level)); } $ref_level = $level; |