This commit is contained in:
Laurent Destailleur
2022-05-11 10:28:12 +02:00
parent da5cf74a08
commit c5a4877eb8
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ class box_external_rss extends ModeleBoxes
// Feed common fields
$href = $item['link'];
$title = urldecode($item['title']);
$date = $item['date_timestamp']; // date will be empty if conversion into timestamp failed
$date = empty($item['date_timestamp']) ? null : $item['date_timestamp']; // date will be empty if conversion into timestamp failed
if ($rssparser->getFormat() == 'rss') { // If RSS
if (!$date && isset($item['pubdate'])) {
$date = $item['pubdate'];