diff --git a/Classes/ViewHelpers/LinkViewHelper.php b/Classes/ViewHelpers/LinkViewHelper.php index 7b8435ce7..91791000e 100644 --- a/Classes/ViewHelpers/LinkViewHelper.php +++ b/Classes/ViewHelpers/LinkViewHelper.php @@ -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']); }