projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4da32
)
Update for city range search
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 23 Apr 2019 18:17:00 +0000
(14:17 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 23 Apr 2019 18:17:00 +0000
(14:17 -0400)
Need to set the whereSep if it is empty.
models/front/members/list.php
patch
|
blob
|
history
diff --git
a/models/front/members/list.php
b/models/front/members/list.php
index
81dfde4
..
a1eab39
100755
(executable)
--- a/
models/front/members/list.php
+++ b/
models/front/members/list.php
@@
-1031,6
+1031,9
@@
class GlmMembersFront_members_list extends GlmDataMemberInfo
$cityName = $cityCoordinates['name'];
// Distance query
$distanceQuery = $this->getDistanceQuery( $cityCoordinates['lat'], $cityCoordinates['lon'] );
+ if ( !isset( $whereSep ) || $whereSep == '' ) {
+ $whereSep = ' AND ';
+ }
$where .= $whereSep." ( $distanceQuery < 40 )";
$whereSep = ' AND ';
$appendSelect = "