summaryrefslogtreecommitdiff
path: root/classes/feeditem/rss.php
diff options
context:
space:
mode:
authorfox <[email protected]>2022-10-01 12:28:15 +0300
committerfox <[email protected]>2022-10-01 12:28:15 +0300
commit0ac143a29b45e35faf7b636e26d4aa854d95602a (patch)
tree8b28a34faaac9fd848dad7503db8d6c191f894f6 /classes/feeditem/rss.php
parent42bc1620b8deda73b96b2e0029c6de79daa5ccca (diff)
parent560caf837768a39d7e13f067f9221347ad348774 (diff)
Merge pull request 'Fix PHP8 strtime warning if argument is null (addendum)' (#86) from mechnich/tt-rss:more-strtotime-fixes into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/86
Diffstat (limited to 'classes/feeditem/rss.php')
-rwxr-xr-xclasses/feeditem/rss.php4
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