BUG - v1.1.4 - in geo.php
Hi Support,
Can this bug be fixed in the next Vantage release and DEV build. See this
post for details and explanation.
The "distance" calculation performed by MySQL to retrieve listings within a radius is returning "distance=NULL" results which equate to when the supplied location co-ordinates match exactly to the geocodes recorded for a listing.
The code that needs fixing is in geo.php file and is:
PHP Code:
$clauses['where'] .= $wpdb->prepare( " AND distance < %f", (float) $rad );
To:
PHP Code:
$clauses['where'] .= $wpdb->prepare( " AND (distance IS NULL OR distance < %f)", (float) $rad );