Commit 87feed90 authored by David Gurk's avatar David Gurk Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix undefined array key in TemplateService

If a TypoScript sub-template is missing, because it is disabled,
it is necessary to check for the existence.

Resolves: #97601
Releases: main, 11.5
Change-Id: Iaca27df294f4c3c3ea890defc4ccd3b5b6feb671

Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent cd59f1c2
......@@ -652,7 +652,7 @@ class TemplateService
// Traversing list again to ensure the sorting of the templates
foreach ($basedOnIds as $id) {
if (is_array($subTemplates[$id])) {
if (is_array($subTemplates[$id] ?? false)) {
$this->processTemplate($subTemplates[$id], $idList . ',sys_' . $id, $pid, 'sys_' . $id, $templateID);
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