Fixed problems with NearMe getting bad locations from lat/lon search develop
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 24 Oct 2019 20:50:18 +0000 (16:50 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 24 Oct 2019 20:50:18 +0000 (16:50 -0400)
classes/eventDataByLatLon.php

index 9fddd53..fe37d09 100644 (file)
@@ -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 = '';