]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.xml.builder
Fix exception with XML notes#index when no notes are found
[rails.git] / app / views / notes / index.xml.builder
index 38b239afc98e40bd5aec7ef58ebde5ce4de35593..1e230b55dca3f5e42bc58d16e9fab4c0577c9608 100644 (file)
@@ -1,3 +1,3 @@
 xml.instruct!
 
-xml << render(:partial => "note", :collection => @notes)
+xml.notes << (render(:partial => "note", :collection => @notes) || "")