]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Don't try and parse an empty string as a layer config, and cope a bit
[rails.git] / app / views / site / index.rhtml
index d6247158d3bcc7d5c31a3124f4801e5c910e911b..3e0400ce4dee689340b5a3081b5359bd6a0e53e7 100644 (file)
@@ -109,7 +109,7 @@ by the OpenStreetMap project and its contributors.
     setMapCenter(centre, zoom);
     <% end %>
 
-    <% if layers %>
+    <% if !layers.empty? %>
     setMapLayers("<%= layers %>");
     <% end %>