Commit d1fa4dd0 authored by Benni Mack's avatar Benni Mack Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix PHP 8 warning in TMENU

Resolves: #98681
Releases: main, 11.5
Change-Id: I4d7bc72efe4256c5e5d9009afd9327428f2661d4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77564


Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 72b938d4
......@@ -98,7 +98,7 @@ class TextMenuContentObject extends AbstractMenuContentObject
// Make before, middle and after parts
$this->I['parts'] = [];
$this->I['parts']['before'] = $this->getBeforeAfter('before', $cObjectForCurrentMenu);
$this->I['parts']['stdWrap2_begin'] = $wrapPartsStdWrap[0];
$this->I['parts']['stdWrap2_begin'] = $wrapPartsStdWrap[0] ?? '';
// stdWrap for doNotShowLink
$this->I['val']['doNotShowLink'] = $cObjectForCurrentMenu->stdWrapValue('doNotShowLink', $this->I['val']);
if (!$this->I['val']['doNotShowLink']) {
......@@ -110,7 +110,7 @@ class TextMenuContentObject extends AbstractMenuContentObject
$this->I['parts']['ATag_end'] = $this->I['A2'];
$this->I['parts']['notATagBeforeWrap_end'] = $wrapPartsAfter[1] ?? '';
}
$this->I['parts']['stdWrap2_end'] = $wrapPartsStdWrap[1];
$this->I['parts']['stdWrap2_end'] = $wrapPartsStdWrap[1] ?? '';
$this->I['parts']['after'] = $this->getBeforeAfter('after', $cObjectForCurrentMenu);
// Passing I to a user function
if ($this->mconf['IProcFunc'] ?? false) {
......
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