Skip to content
Snippets Groups Projects
Commit a69602dc authored by Susanne Moog's avatar Susanne Moog Committed by Daniel Goerz
Browse files

[TASK] Avoid PHP Notice in RedirectService

Resolves: #90112
Releases: master
Change-Id: Iddccd7525992428142e7daff6c44a206f20e435b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62888


Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarFelix P. <f.pachowsky@neusta.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent b37441e8
Branches
Tags
No related merge requests found
......@@ -212,7 +212,7 @@ class RedirectService implements LoggerAwareInterface
}
// Do this for files, folders, external URLs
if (!empty($linkDetails['url'])) {
if ($matchedRedirect['is_regexp']) {
if ($matchedRedirect['is_regexp'] ?? false) {
$linkDetails = $this->replaceRegExpCaptureGroup($matchedRedirect, $uri, $linkDetails);
}
......
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