]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
fix problematic merge
[rails.git] / app / controllers / amf_controller.rb
index 1049b51b61d0735cb28d31986815df51c1d1005c..5fe9b45cba54338eb7f6142a079b964747d23f31 100644 (file)
@@ -400,7 +400,7 @@ EOF
     insertsql =''
     currentsql=''
     attributes.each do |k,v|
-      if v=='' then next end
+      if v=='' or v.nil? then next end
       if v[0,6]=='(type ' then next end
       if insertsql !='' then insertsql +=',' end
       if currentsql!='' then currentsql+=',' end