Skip to content

Commit

Permalink
fix: handle php warning "Undefined array key 3"
Browse files Browse the repository at this point in the history
  • Loading branch information
ger4003 committed Oct 30, 2024
1 parent ad416cf commit 69b5937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Fusion/ConvertEmailLinksImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function convertLinkName(array $matches)
{
$replacedEmail = $this->linkNameConverter->convert(trim($matches[2]));

return $matches[1] . $replacedEmail . $matches[3] ?? '';
return $matches[1] . $replacedEmail . ($matches[3] ?? '');
}

/**
Expand Down

0 comments on commit 69b5937

Please sign in to comment.