Skip to content

Commit 91747f2

Browse files
committed
Fixed PHP array key warning
1 parent 05b2914 commit 91747f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Seo/Canonical.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static public function calculateUrl(): string {
7575
unset($query['encryptionKey']);
7676
unset($query['cHash']);
7777

78-
$removeParameters = (array)$GLOBALS['TSFE']->config['config']['tx_vierwd.']['removeCanonicalUrlParameters.'];
78+
$removeParameters = $GLOBALS['TSFE']->config['config']['tx_vierwd.']['removeCanonicalUrlParameters.'] ?? [];
7979
$removeParameters = array_filter($removeParameters);
8080
foreach ($removeParameters as $parameter) {
8181
if (ArrayUtility::isValidPath($query, $parameter, '|')) {

0 commit comments

Comments
 (0)