Commit f6d94968 authored by Chris Müller's avatar Chris Müller Committed by Benni Mack
Browse files

[BUGFIX] Avoid undefined array key in TextMenuContentObject->writeMenu()

Resolves: #96377
Releases: main, 11.5
Change-Id: I98dfe39cf04468d54ee979afa34e7dd3bd40acf6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72784


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 061c799d
......@@ -111,7 +111,7 @@ class TextMenuContentObject extends AbstractMenuContentObject
}
// ATagBeforeWrap processing:
if ($this->I['val']['ATagBeforeWrap'] ?? false) {
$wrapPartsBefore = explode('|', $this->I['val']['linkWrap']);
$wrapPartsBefore = explode('|', $this->I['val']['linkWrap'] ?? '');
$wrapPartsAfter = ['', ''];
} else {
$wrapPartsBefore = ['', ''];
......
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