diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-18 22:17:42 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-18 22:17:42 +0000 |
commit | 1ea3decbbacd73bf93f52f3ce392914cc924df4f (patch) | |
tree | f7279e0e24f4cdc34ebe9f4fdb1e8ad2acb78392 /data/rbot | |
parent | ea3e6deb696f6336fef8680140db818b8237d0bf (diff) |
Fix an issue with RSS feeds having no itemDate
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/rss.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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
|