diff options
author | Andrew Dolgov <[email protected]> | 2022-10-01 19:01:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-10-01 19:01:33 +0300 |
commit | c654f02a5354290e528e7fcaa1ee0979b1190fa4 (patch) | |
tree | 31eba5a6f50b224c0c0288f5068bf3840fed21aa /classes/handler/public.php | |
parent | 6cbdbd261eee35bb1d8bb57eb73b1746bbbaa144 (diff) | |
parent | 54942b766403df27063214e3e25d1eeabdca8097 (diff) |
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 5c2f2bd02..08b73b87d 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -128,9 +128,9 @@ class Handler_Public extends Handler { $tpl->setVariable('ARTICLE_CONTENT', $content, true); $tpl->setVariable('ARTICLE_UPDATED_ATOM', - date('c', strtotime($line["updated"])), true); + date('c', strtotime($line["updated"] ?? '')), true); $tpl->setVariable('ARTICLE_UPDATED_RFC822', - date(DATE_RFC822, strtotime($line["updated"])), true); + date(DATE_RFC822, strtotime($line["updated"] ?? '')), true); $tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true); @@ -214,7 +214,7 @@ class Handler_Public extends Handler { $article['title'] = $line['title']; $article['excerpt'] = $line["content_preview"]; $article['content'] = Sanitizer::sanitize($line["content"], false, $owner_uid, $feed_site_url, null, $line["id"]); - $article['updated'] = date('c', strtotime($line["updated"])); + $article['updated'] = date('c', strtotime($line["updated"] ?? '')); if (!empty($line['note'])) $article['note'] = $line['note']; if (!empty($line['author'])) $article['author'] = $line['author']; |