Skip to content

Commit

Permalink
wsuser.module::wsuser_search: Typo in SQL
Browse files Browse the repository at this point in the history
Fixed probable typo in SQL query in `wsuser_search()`.
  • Loading branch information
lrcg committed Mar 11, 2013
1 parent cb33ff0 commit e23a79e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sites/all/modules/dev/wsuser/wsuser.module
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function wsuser_search($op = 'search', $keys = NULL) {
// No guarantee expressed or implied, and no testing around 0 latitude.
$sql = "
SELECT SQRT(POW(69.1 * (l.latitude - %f), 2) + POW(69.1 * (%f - l.longitude) * COS(l.latitude / 57.3), 2)) AS distance, u.*, w.*, l.*
FROM {users} u, {wsuser w}, {user_location} l
FROM {users} u, {wsuser} w, {user_location} l
WHERE u.uid = w.uid
AND u.uid=l.oid
AND status > 0
Expand All @@ -620,7 +620,7 @@ function wsuser_search($op = 'search', $keys = NULL) {
// Otherwise, just use the keys in the search, including wildcards.
else {
$sql = "
SELECT * FROM {users} u, {wsuser w}, {user_location} l
SELECT * FROM {users} u, {wsuser} w, {user_location} l
WHERE u.uid = w.uid
AND u.uid=l.oid
AND status > 0
Expand Down

0 comments on commit e23a79e

Please sign in to comment.