better handling of feeds with broken timestamps (closes #119)

This commit is contained in:
Andrew Dolgov 2007-02-09 10:17:01 +01:00
parent 89fbb3bc82
commit 2e93084687
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@
if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date);
if ($rss_2_date != "") $entry_timestamp = strtotime($rss_2_date);
if ($entry_timestamp == "") {
if ($entry_timestamp == "" || $entry_timestamp == -1 || !$entry_timestamp) {
$entry_timestamp = time();
$no_orig_date = 'true';
} else {