Skip to content

Commit

Permalink
[BUGFIX] Handle possibly arbitrary argument on v13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 28, 2025
1 parent 2c6d40d commit 6dd72de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/LinkViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function render()

$uri = $uriBuilder->build();
$this->tag->addAttribute('href', $uri);
$classes = trim($this->arguments['class'] . ' ' . $additionalCssClasses);
$classes = trim(($this->arguments['class'] ?? '') . ' ' . $additionalCssClasses);
if (!empty($classes)) {
$this->tag->addAttribute('class', $classes);
} else {
Expand Down

0 comments on commit 6dd72de

Please sign in to comment.