Skip to content
Snippets Groups Projects
Commit 2b08119e authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUFIX] Fix issue with non-array marker assignment

parent b79e75cb
No related branches found
No related tags found
No related merge requests found
......@@ -351,7 +351,7 @@ class MailTemplateService {
public function setMarkers(array $markers): MailTemplateService {
$this->markers = $markers;
foreach($markers as $key => $currentMarker) {
if (!isset($currentMarker['markerLabel'])) {
if (!\is_array($currentMarker) || !isset($currentMarker['markerLabel'])) {
continue;
}
$this->markerLabels[$key] = $currentMarker['markerLabel'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment