]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
User null to indicate the the user's home location is not set.
[rails.git] / app / views / site / index.rhtml
index 80746ba078e44d246c53e47dca139a448a481d75..5b9fd84f65ea4f376613229be7b22649c2f74b7f 100644 (file)
@@ -14,7 +14,7 @@
 <% lon = params['mlon'] %> 
 <% lat = params['mlat'] %>
 <% zoom =  params['zoom'] || '12' %>
-<% elsif @user %> 
+<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %> 
 <% lon =  @user.home_lon %>
 <% lat =  @user.home_lat %>
 <% zoom = '10' %>