Skip to content

Commit

Permalink
Merge pull request #34 from grummbeer/fix-undefined-index
Browse files Browse the repository at this point in the history
Fix undefined array key
  • Loading branch information
dmolineus authored Sep 25, 2024
2 parents 264eb65 + 70edfcf commit b36a8f9
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 b36a8f9

Please sign in to comment.