From bb0852237fc0c5882da30bf2aee4bf35ee28e3f2 Mon Sep 17 00:00:00 2001 From: Hitesh Aggarwal Date: Fri, 23 Oct 2020 17:32:19 +0530 Subject: [PATCH] Update Menu.php --- .../framework/library/astroid/Component/Menu.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/astroid/astroid-framework/framework/library/astroid/Component/Menu.php b/astroid/astroid-framework/framework/library/astroid/Component/Menu.php index cac7dae6..c5efabeb 100644 --- a/astroid/astroid-framework/framework/library/astroid/Component/Menu.php +++ b/astroid/astroid-framework/framework/library/astroid/Component/Menu.php @@ -124,7 +124,11 @@ public static function getMenu($menutype = '', $nav_class = [], $logo = null, $l // The next item is shallower. elseif ($item->shallower) { echo ''; - echo str_repeat('' . '', $item->level_diff); + if ($item->level == 1 && $item->parent) { + echo str_repeat('' . '', $item->level_diff); + } else { + echo str_repeat('' . '', $item->level_diff); + } } // The next item is on the same level. else {