Commit 77051c18 authored by dev-rke's avatar dev-rke Committed by Oliver Bartsch
Browse files

[BUGFIX] Avoid PHP 8.0 undefined key in FormEngine

FlexFormSectionContainer raises an exception when
title is not defined.

Releases: main, 11.5
Resolves: #96936
Change-Id: I0ad1a432f11bb2cc36f718ca25f430cf91d94417
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73570

Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.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: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent 9c04087b
......@@ -115,7 +115,7 @@ class FlexFormSectionContainer extends AbstractContainer
}
$sectionTitle = '';
if (!empty(trim($flexFormDataStructureArray['title']))) {
if (!empty(trim($flexFormDataStructureArray['title'] ?? ''))) {
$sectionTitle = $languageService->sL(trim($flexFormDataStructureArray['title']));
}
......
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