summaryrefslogtreecommitdiff
path: root/classes/feeditem/atom.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-10-01 19:01:33 +0300
committerAndrew Dolgov <[email protected]>2022-10-01 19:01:33 +0300
commitc654f02a5354290e528e7fcaa1ee0979b1190fa4 (patch)
tree31eba5a6f50b224c0c0288f5068bf3840fed21aa /classes/feeditem/atom.php
parent6cbdbd261eee35bb1d8bb57eb73b1746bbbaa144 (diff)
parent54942b766403df27063214e3e25d1eeabdca8097 (diff)
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'classes/feeditem/atom.php')
-rwxr-xr-xclasses/feeditem/atom.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php
index 59bf403b3..f6c96f959 100755
--- a/classes/feeditem/atom.php
+++ b/classes/feeditem/atom.php
@@ -19,19 +19,19 @@ class FeedItem_Atom extends FeedItem_Common {
$updated = $this->elem->getElementsByTagName("updated")->item(0);
if ($updated) {
- return strtotime($updated->nodeValue);
+ return strtotime($updated->nodeValue ?? '');
}
$published = $this->elem->getElementsByTagName("published")->item(0);
if ($published) {
- return strtotime($published->nodeValue);
+ return strtotime($published->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