From: Tom Hughes Date: Wed, 24 Apr 2013 08:41:08 +0000 (+0100) Subject: Fix exception with XML notes#index when no notes are found X-Git-Tag: live~5116 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/925bd812a2c9000c4901384b70f20e65b0f53cd4 Fix exception with XML notes#index when no notes are found --- diff --git a/app/views/notes/index.xml.builder b/app/views/notes/index.xml.builder index 38b239afc..1e230b55d 100644 --- a/app/views/notes/index.xml.builder +++ b/app/views/notes/index.xml.builder @@ -1,3 +1,3 @@ xml.instruct! -xml << render(:partial => "note", :collection => @notes) +xml.notes << (render(:partial => "note", :collection => @notes) || "")