X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77a3d8d24ef5014e06f488fd9abd2307ac79a3f3..0813f88bc7972e175c4492a07a00916fc11c3e88:/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 %>)
|