diff --git a/Classes/DataProcessing/ConfigProcessor.php b/Classes/DataProcessing/ConfigProcessor.php index 6e5dd4d2..702186cd 100644 --- a/Classes/DataProcessing/ConfigProcessor.php +++ b/Classes/DataProcessing/ConfigProcessor.php @@ -673,11 +673,11 @@ protected function getSubNavigation(array $subNavigation, int $navbarClickablepa { $res = []; foreach ($subNavigation as $supNav ) { - if ($supNav['hasSubpages']) { + if ( is_array($supNav['children'])) { self::getSubNavigation($supNav['children'], $navbarClickableparent); - } - if ( $navbarClickableparent === 0 ) { - $supNav['link'] = '#'; + if ( $navbarClickableparent === 0 ) { + $supNav['link'] = '#'; + } } $res[] = $supNav;