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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74598

Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
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->versionOL($subTemplates[$id]);
$this->processTemplate($subTemplates[$id], $idList . ',sys_' . $id, $pid, 'sys_' . $id, $templateID);
}
......
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