Commit 2b08119e authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUFIX] Fix issue with non-array marker assignment

parent b79e75cb
......@@ -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'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment