]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/geocoder_helper.rb
Correct calculation of reciprocal angles.
[rails.git] / app / helpers / geocoder_helper.rb
index 879b1dca1c3a989db6483615cea50396d23d6096..75e81665126375a65884743fd790e5138992d8e8 100644 (file)
@@ -4,7 +4,7 @@ module GeocoderHelper
     #html_options[:title] = strip_tags(result[:description]) if result[:description]
     html = ""
     html << result[:prefix] if result[:prefix]
-    html << link_to_function(result[:name], "setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})", html_options) 
+    html << link_to_function(result[:name], "setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})", html_options)  if result[:name]
     html << result[:suffix] if result[:suffix]
     return html
   end