]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
api fixes
[rails.git] / app / models / way.rb
index 65bb3158debd3c545c47b869ed6de3c50a900ba6..090c7a739f9bf7344d237528d9460024c6550186 100644 (file)
@@ -84,7 +84,7 @@ class Way < ActiveRecord::Base
     end
 
     ordered_segments.each do |seg_id|
     end
 
     ordered_segments.each do |seg_id|
-      if seg_id
+      if seg_id and seg_id != '0'
         e = XML::Node.new 'seg'
         e['id'] = seg_id
         el1 << e
         e = XML::Node.new 'seg'
         e['id'] = seg_id
         el1 << e