From 3b2c40fddfd117bdefae0f7979b96402fa862145 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 24 Oct 2019 16:50:18 -0400 Subject: [PATCH] Fixed problems with NearMe getting bad locations from lat/lon search --- classes/eventDataByLatLon.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classes/eventDataByLatLon.php b/classes/eventDataByLatLon.php index 9fddd53..fe37d09 100644 --- a/classes/eventDataByLatLon.php +++ b/classes/eventDataByLatLon.php @@ -157,6 +157,13 @@ class GlmMembersFront_events_eventDataByLatLon extends GlmDataEvents $latLonWhereForEventLoc .= ')'; $latLonWhereForMembLoc .= ')'; + } else { + $latLonWhereForEventLoc = " + AND L.lat != 0 and L.lon != 0 + "; + $latLonWhereForMembLoc = " + AND I.lat != 0 and I.lon != 0 + "; } $textWhere = ''; -- 2.17.1