Skip to content

Commit

Permalink
Merge pull request #196 from joomdev/dev
Browse files Browse the repository at this point in the history
Update Menu.php
  • Loading branch information
hiteshaggarwal authored Oct 23, 2020
2 parents e36722f + bb08522 commit 4308bec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ public static function getMenu($menutype = '', $nav_class = [], $logo = null, $l
// The next item is shallower.
elseif ($item->shallower) {
echo '</li>';
echo str_repeat('</ul></div>' . '</li>', $item->level_diff);
if ($item->level == 1 && $item->parent) {
echo str_repeat('</ul></div>' . '</li>', $item->level_diff);
} else {
echo str_repeat('</ul>' . '</li>', $item->level_diff);
}
}
// The next item is on the same level.
else {
Expand Down

0 comments on commit 4308bec

Please sign in to comment.