Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
sg_mail
Commits
9302b428
Commit
9302b428
authored
Nov 18, 2020
by
Stefan Galinski
🎮
Browse files
[BUGFIX] Fix potential backend crash
parent
5c5958fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Classes/Controller/MailController.php
Classes/Controller/MailController.php
+4
-0
No files found.
Classes/Controller/MailController.php
View file @
9302b428
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment