diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-15 19:20:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-15 19:20:49 +0000 |
commit | 192b9008bdc5590a041166635eb1aecae78df992 (patch) | |
tree | e074c84e55a7add4d5abb3e2e3b096c4d3655cd8 /app | |
parent | 56d0af472d628375b263175ef5920031b815fc7e (diff) | |
download | redmine-192b9008bdc5590a041166635eb1aecae78df992.tar.gz redmine-192b9008bdc5590a041166635eb1aecae78df992.zip |
fixed: error on feeds/news when no news exist
git-svn-id: http://redmine.rubyforge.org/svn/trunk@336 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/feeds/news.rxml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/feeds/news.rxml b/app/views/feeds/news.rxml index 8c7a855b8..a85d86715 100644 --- a/app/views/feeds/news.rxml +++ b/app/views/feeds/news.rxml @@ -3,7 +3,7 @@ xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do xml.channel do
xml.title "#{Setting.app_title}: #{l(:label_news_latest)}"
xml.link url_for(:controller => 'welcome', :only_path => false)
- xml.pubDate CGI.rfc1123_date(@news.first.created_on)
+ xml.pubDate CGI.rfc1123_date(@news.first ? @news.first.created_on : Time.now)
xml.description l(:label_news_latest)
@news.each do |news|
xml.item do
|