diff options
author | Andrew Dolgov <[email protected]> | 2007-02-09 10:17:01 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-02-09 10:17:01 +0100 |
commit | 2e93084687cc98bc5a862af55a60a167513c632c (patch) | |
tree | 658efe2071ac102ceb0b8760b4775ea0c4acab31 /functions.php | |
parent | 89fbb3bc8206cd9d6a2554253a6eb1afe342b927 (diff) |
better handling of feeds with broken timestamps (closes #119)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |