Commit 98b51a00 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Respecting objects in all_marker

parent 4e868139
......@@ -917,13 +917,21 @@ class MailTemplateService {
foreach ($markers as $key => $value) {
if (\is_string($value)) {
$allMarker .= $key . ': ' . $value . PHP_EOL;
$allMarker .= $key . ': ' . $value . PHP_EOL;
} elseif (\is_array($value)) {
foreach ($value as $innerKey => $innerValue) {
$allMarker .= $key . ': ' . $innerValue . PHP_EOL;
$allMarker .= $key . ': ' . $innerValue . PHP_EOL;
}
} elseif (\is_bool($value)) {
$allMarker .= $key . ': ' . $value . PHP_EOL;
if ($value) {
$allMarker .= $key . ': TRUE' . PHP_EOL;
} else {
$allMarker .= $key . ': FALSE' . PHP_EOL;
}
} elseif (\is_object($value)) {
if (method_exists($value, '__toString')) {
$allMarker .= $key . ': ' . $value->__toString() . PHP_EOL;
}
}
}
......
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