Issue 5691: Post dates of feeds sometimes had been wrong
This commit is contained in:
parent
c7f8f190b9
commit
9bff31f18f
|
@ -271,9 +271,14 @@ class Feed {
|
||||||
}
|
}
|
||||||
$updated = XML::getFirstNodeValue($xpath, 'atom:updated/text()', $entry);
|
$updated = XML::getFirstNodeValue($xpath, 'atom:updated/text()', $entry);
|
||||||
|
|
||||||
if (empty($updated)) {
|
if (empty($updated) && !empty($published)) {
|
||||||
$updated = $published;
|
$updated = $published;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($published) && !empty($updated)) {
|
||||||
|
$published = $updated;
|
||||||
|
}
|
||||||
|
|
||||||
if ($published != "") {
|
if ($published != "") {
|
||||||
$item["created"] = $published;
|
$item["created"] = $published;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue