Skip to content

Commit

Permalink
Fix undefined array key
Browse files Browse the repository at this point in the history
  • Loading branch information
grummbeer committed Sep 23, 2024
1 parent 264eb65 commit 70edfcf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/EventListener/Dca/NavigationDcaListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ public function getPageFields(): array
continue;
}

$fields[$fieldName] = sprintf('%s <span class="tl_gray">[%s]</span>', $config['label'][0], $fieldName);
$fields[$fieldName] = sprintf(
'%s <span class="tl_gray">[%s]</span>',
$config['label'][0] ?? '',
$fieldName,
);
}

return $fields;
Expand Down

0 comments on commit 70edfcf

Please sign in to comment.