Skip to content

Commit

Permalink
[TASK] Use direct null comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Nov 18, 2024
1 parent 8a0dd3d commit d81702f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/ViewHelpers/LinkViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ protected function getLinkToNewsItem(
|| (isset($tsSettings['link']['hrDate']['_typoScriptNodeValue']) && $tsSettings['link']['hrDate']['_typoScriptNodeValue'] == 1)
) {
$dateTime = $newsItem->getDatetime();

if (!is_null($dateTime)) {
if ($dateTime !== null) {
if (!empty($tsSettings['link']['hrDate']['day'])) {
$configuration['additionalParams'] .= '&tx_news_pi1[day]=' . $dateTime->format($tsSettings['link']['hrDate']['day']);
}
Expand Down

0 comments on commit d81702f

Please sign in to comment.