diff options
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
|