Skip to content

Commit

Permalink
Fix undefined array key
Browse files Browse the repository at this point in the history
Not all fields have a label
  • Loading branch information
grummbeer committed Sep 23, 2024
1 parent 260ae0d commit 6b934be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/Dca/NavigationDcaListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ 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 6b934be

Please sign in to comment.