Commit 9302b428 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[BUGFIX] Fix potential backend crash

parent 5c5958fa
......@@ -188,6 +188,10 @@ class MailController extends ActionController {
$subject = $registerArray[$parameters['selectedExtension']][$parameters['selectedTemplate']]['subject'];
/** @var Template $template */
foreach ($templatesFromDb as $key => $template) {
if ((string) $key === '') {
continue;
}
if ($template === NULL) {
$defaultTemplatePath = $registerArray[$parameters['selectedExtension']][$parameters['selectedTemplate']]['templatePath'];
$fallbackTemplateFile = $defaultTemplatePath . 'template.html';
......
Markdown is supported
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