From 70edfcff8097e62a7722760eb61d8c0c7fb5bd97 Mon Sep 17 00:00:00 2001 From: grummbeer Date: Mon, 23 Sep 2024 16:49:35 +0200 Subject: [PATCH] Fix undefined array key --- src/EventListener/Dca/NavigationDcaListener.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/EventListener/Dca/NavigationDcaListener.php b/src/EventListener/Dca/NavigationDcaListener.php index 226e3fc..b449c04 100644 --- a/src/EventListener/Dca/NavigationDcaListener.php +++ b/src/EventListener/Dca/NavigationDcaListener.php @@ -40,7 +40,11 @@ public function getPageFields(): array continue; } - $fields[$fieldName] = sprintf('%s [%s]', $config['label'][0], $fieldName); + $fields[$fieldName] = sprintf( + '%s [%s]', + $config['label'][0] ?? '', + $fieldName, + ); } return $fields;