Skip to content

Commit

Permalink
[BUGFIX] Avoid 'undefined array key "sheetTitle"' warning
Browse files Browse the repository at this point in the history
Properly guard array key access for "sheetTitle" in
`\TYPO3\CMS\Backend\Form\Container\FlexFormTabsContainer->render()`.

Resolves: #98201
Releases: main, 11.5
Change-Id: Iafa5fd4623d53501e655739d7aabc543d26ed216
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75546
Tested-by: Stefan Bürk <[email protected]>
Tested-by: core-ci <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Reviewed-by: Oliver Klee <[email protected]>
Reviewed-by: Chris Müller <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
  • Loading branch information
dkoether authored and lolli42 committed Aug 24, 2022
1 parent 51350a4 commit 158b986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Form/Container/FlexFormTabsContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function render()

if ($childReturn['html'] !== '') {
$tabElements[] = [
'label' => !empty(trim($sheetDataStructure['ROOT']['sheetTitle'])) ? $languageService->sL(trim($sheetDataStructure['ROOT']['sheetTitle'])) : $sheetName,
'label' => !empty(trim($sheetDataStructure['ROOT']['sheetTitle'] ?? '')) ? $languageService->sL(trim($sheetDataStructure['ROOT']['sheetTitle'])) : $sheetName,
'content' => $childReturn['html'],
'description' => trim($sheetDataStructure['ROOT']['sheetDescription'] ?? '') ? $languageService->sL(trim($sheetDataStructure['ROOT']['sheetDescription'])) : '',
'linkTitle' => trim($sheetDataStructure['ROOT']['sheetShortDescr'] ?? '') ? $languageService->sL(trim($sheetDataStructure['ROOT']['sheetShortDescr'])) : '',
Expand Down

0 comments on commit 158b986

Please sign in to comment.