From 2e93084687cc98bc5a862af55a60a167513c632c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Feb 2007 10:17:01 +0100 Subject: better handling of feeds with broken timestamps (closes #119) --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 0b69fb8de..1eb3ef2f7 100644 --- a/functions.php +++ b/functions.php @@ -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 { -- cgit v1.2.3