Skip to content

Commit 4308bec

Browse files
Merge pull request #196 from joomdev/dev
Update Menu.php
2 parents e36722f + bb08522 commit 4308bec

File tree

1 file changed

+5
-1
lines changed
  • astroid/astroid-framework/framework/library/astroid/Component

1 file changed

+5
-1
lines changed

astroid/astroid-framework/framework/library/astroid/Component/Menu.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ public static function getMenu($menutype = '', $nav_class = [], $logo = null, $l
124124
// The next item is shallower.
125125
elseif ($item->shallower) {
126126
echo '</li>';
127-
echo str_repeat('</ul></div>' . '</li>', $item->level_diff);
127+
if ($item->level == 1 && $item->parent) {
128+
echo str_repeat('</ul></div>' . '</li>', $item->level_diff);
129+
} else {
130+
echo str_repeat('</ul>' . '</li>', $item->level_diff);
131+
}
128132
}
129133
// The next item is on the same level.
130134
else {

0 commit comments

Comments
 (0)