diff --git a/modules/mod_menu/helper.php b/modules/mod_menu/helper.php index 4b5d2b90739d8..0958c1282f839 100644 --- a/modules/mod_menu/helper.php +++ b/modules/mod_menu/helper.php @@ -58,7 +58,7 @@ public static function getList(&$params) if (($start && $start > $item->level) || ($end && $item->level > $end) || (!$showAll && $item->level > 1 && !in_array($item->parent_id, $path)) - || ($start > 1 && !in_array($item->tree[$start - 2], $path)) + || ($start > 1 && !in_array($item->tree[$start-2],$path) && ($item->menutype == $active->menutype)) ) { unset($items[$i]); continue;