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

[BUGFIX] Avoid undefined array key in ContentObjectRenderer->getTypoLink()

Resolves: #96418
Releases: main, 11.5
Change-Id: I00b77f478c667f59b751c6f13c975d03799086d7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72783


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 f6d94968
......@@ -5076,7 +5076,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
}
if (is_array($urlParameters)) {
if (!empty($urlParameters)) {
$conf['additionalParams'] .= HttpUtility::buildQueryString($urlParameters, '&');
$conf['additionalParams'] = ($conf['additionalParams'] ?? '') . HttpUtility::buildQueryString($urlParameters, '&');
}
} else {
$conf['additionalParams'] = ($conf['additionalParams'] ?? '') . $urlParameters;
......
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