diff --git a/app/views/feeds/news.rxml b/app/views/feeds/news.rxml index 8c7a855b..a85d8671 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