X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/55d8bc5256606d3922116cc5ae64330378533301..84b67e00a07262139f2cc9e9460f4afd35e91349:/app/controllers/amf_controller.rb?ds=sidebyside diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 1049b51b6..5fe9b45cb 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -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