Skip to content

Commit

Permalink
[BUGFIX] Check if header variable is set before using it
Browse files Browse the repository at this point in the history
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: Oliver Bartsch <bo@cedev.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Tobias D. <tobias.doll@snk.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
susannemoog authored and bmack committed Dec 6, 2019
1 parent 4a80952 commit f1c1033
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ protected function prepareContent(string $clientContext): void

foreach ($wizardItems as $wizardKey => $wInfo) {
$wizardOnClick = '';
if ($wInfo['header']) {
if (isset($wInfo['header'])) {
$menuItems[] = [
'label' => $wInfo['header'] ?: '-',
'content' => ''
Expand Down

0 comments on commit f1c1033

Please sign in to comment.