aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-13 23:53:45 +0000
committerplegall <plg@piwigo.org>2004-12-13 23:53:45 +0000
commit9ec6ad0c8a155d3cb93a91836014f837fdc36ccf (patch)
tree94ff3bc847399fd4a6c00a5a037ee7b16276b358
parenta517b211dd0acb6924ad236d48378ecd2dd08346 (diff)
- bug fixed : in the categories menu, we may have to close more than one
level at the same time git-svn-id: http://piwigo.org/svn/trunk@645 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php4
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;