User null to indicate the the user's home location is not set.
This commit is contained in:
parent
79457cd43e
commit
985047f18d
3 changed files with 14 additions and 15 deletions
|
@ -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' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue