diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2022-10-01 19:01:33 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2022-10-01 19:01:33 +0300 |
| commit | c654f02a5354290e528e7fcaa1ee0979b1190fa4 (patch) | |
| tree | 31eba5a6f50b224c0c0288f5068bf3840fed21aa /classes/feeditem/rss.php | |
| parent | 6cbdbd261eee35bb1d8bb57eb73b1746bbbaa144 (diff) | |
| parent | 54942b766403df27063214e3e25d1eeabdca8097 (diff) | |
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'classes/feeditem/rss.php')
| -rwxr-xr-x | classes/feeditem/rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 132eabff5..e07fd1d06 100755 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -17,13 +17,13 @@ class FeedItem_RSS extends FeedItem_Common { $pubDate = $this->elem->getElementsByTagName("pubDate")->item(0); if ($pubDate) { - return strtotime($pubDate->nodeValue); + return strtotime($pubDate->nodeValue ?? ''); } $date = $this->xpath->query("dc:date", $this->elem)->item(0); if ($date) { - return strtotime($date->nodeValue); + return strtotime($date->nodeValue ?? ''); } // consistent with strtotime failing to parse |