From 1ea3decbbacd73bf93f52f3ce392914cc924df4f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 18 Oct 2006 22:17:42 +0000 Subject: Fix an issue with RSS feeds having no itemDate --- data/rbot/plugins/rss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 7313f252..882a15fb 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -237,7 +237,7 @@ class RSSFeedsPlugin < Plugin def freshness_sort(items) notime = Time.at(0) items.sort { |a, b| - itemDate(b, notime) <=> itemDate(a, notime) + itemDate(b, notime) || 0 <=> itemDate(a, notime) || 0 } end -- cgit v1.2.3