User null to indicate the the user's home location is not set.

This commit is contained in:
Tom Hughes 2007-07-27 17:46:01 +00:00
parent 79457cd43e
commit 985047f18d
3 changed files with 14 additions and 15 deletions

View 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' %>