Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.2.7p1'
Browse files Browse the repository at this point in the history
  • Loading branch information
gnomet committed Sep 19, 2012
2 parents c59deac + 28cd920 commit c2d7b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/listings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def index
end

@title = t("listings.index.feed_title", :optional_category => @category_label, :community_name => @current_community.name, :listing_type => listing_type_label)
@updated = @listings.first.updated_at
@updated = @listings.first.present? ? @listings.first.updated_at : Time.now
@url_root = "#{request.protocol}#{@current_community.full_domain}"
end
respond_with @listings
Expand Down

0 comments on commit c2d7b2b

Please sign in to comment.