summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/html.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 77775ae5f..5969198bd 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -762,7 +762,10 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
if( $item['level'] > $level ){
//open new list
- $ret .= "\n<ul class=\"$class\">\n";
+ for($i=0; $i<($item['level'] - $level); $i++){
+ if ($i) $ret .= "<li class=\"clear\">\n";
+ $ret .= "\n<ul class=\"$class\">\n";
+ }
}elseif( $item['level'] < $level ){
//close last item
$ret .= "</li>\n";