Skip to content
Snippets Groups Projects
Commit f1c1033f authored by Susanne Moog's avatar Susanne Moog Committed by Benni Mack
Browse files

[BUGFIX] Check if header variable is set before using it

Avoid a TypeError exception in NewContentElementController in
newer PHP versions because of an undefined array access.

Resolves: #89860
Releases: master, 9.5
Change-Id: I5728638a3f5800588f17bef202fe5814e79d7f2f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62540


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarTobias D. <tobias.doll@snk.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 4a80952b
No related merge requests found
......@@ -270,7 +270,7 @@ class NewContentElementController
foreach ($wizardItems as $wizardKey => $wInfo) {
$wizardOnClick = '';
if ($wInfo['header']) {
if (isset($wInfo['header'])) {
$menuItems[] = [
'label' => $wInfo['header'] ?: '-',
'content' => ''
......
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