Skip to content

Commit

Permalink
Array can never be in the URL attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Dec 3, 2023
1 parent 0a2ee69 commit 767d819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FrontendModule/ChangeLanguageModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ protected function createUrlParameterBag(array $queryParameters = []): UrlParame
continue;
}

if (!\array_key_exists($k, $currentQuery)) {
$attributes[$k] = (string) $value;
if (!\is_array($value) && !\array_key_exists($k, $currentQuery)) {
$attributes[$k] = $value;
} elseif (\in_array($k, $queryParameters, false)) {
$query[$k] = $value;
}
Expand Down

0 comments on commit 767d819

Please sign in to comment.