X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e8d8092500a3713e8dfbb4fd61fd8a95d067d20..959442d087b9b25fbec9c78ec122106b82d887dd:/app/views/user/_contact.html.erb diff --git a/app/views/user/_contact.html.erb b/app/views/user/_contact.html.erb index f019ccf15..e0babce7e 100644 --- a/app/views/user/_contact.html.erb +++ b/app/views/user/_contact.html.erb @@ -4,7 +4,7 @@ <%= link_to h(contact.display_name), :controller => 'user', :action => 'view', :display_name => contact.display_name %> - <% if contact.home_lon and contact.home_lat %> + <% if @this_user.home_lon and @this_user.home_lat and contact.home_lon and contact.home_lat %> <% distance = @this_user.distance(contact) %> <% if distance < 1 %> (<%= t 'user.view.m away', :count => (distance * 1000).round %>)