From: Chuck Scott Date: Thu, 24 Oct 2019 20:50:18 +0000 (-0400) Subject: Fixed problems with NearMe getting bad locations from lat/lon search X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=WP-Plugins%2Fglm-member-db-events.git Fixed problems with NearMe getting bad locations from lat/lon search --- 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 = '';