From eb204057c9a7d2a0b7386300ebf4bc82bdc3215e Mon Sep 17 00:00:00 2001 From: Helmut Hackbarth Date: Fri, 13 May 2022 14:55:42 +0200 Subject: [PATCH] BUGFIX: https://github.com/t3solution/t3sbootstrap/issues/206 --- Classes/DataProcessing/ConfigProcessor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;