|
|
@@ -194,9 +194,11 @@ class BxBaseModGeneralDb extends BxDolModuleDb
|
|
|
if(!isset($CNF['OBJECT_METATAGS']))
|
|
|
break;
|
|
|
if ($aSearchParam['type'] == 'location_radius'){
|
|
|
- list($fLatitude, $fLongitude, $sCountry, $sState, $sCity, $sZip, $sStreet, $sStreetNumber, $iRadius) = $aSearchParam['value']['array'];
|
|
|
- $aBounds = bx_get_location_bounds_latlng($fLatitude, $fLongitude, $iRadius);
|
|
|
- $aSql = BxDolMetatags::getObjectInstance($CNF['OBJECT_METATAGS'])->locationsGetAsSQLPart($CNF['TABLE_ENTRIES'], $CNF['FIELD_ID'], '', '', '', '', $aBounds);
|
|
|
+ if ($aSearchParam['value']['string'] != ''){
|
|
|
+ list($fLatitude, $fLongitude, $sCountry, $sState, $sCity, $sZip, $sStreet, $sStreetNumber, $iRadius) = $aSearchParam['value']['array'];
|
|
|
+ $aBounds = bx_get_location_bounds_latlng($fLatitude, $fLongitude, $iRadius);
|
|
|
+ $aSql = BxDolMetatags::getObjectInstance($CNF['OBJECT_METATAGS'])->locationsGetAsSQLPart($CNF['TABLE_ENTRIES'], $CNF['FIELD_ID'], '', '', '', '', $aBounds);
|
|
|
+ }
|
|
|
}
|
|
|
else{
|
|
|
list($fLatitude, $fLongitude, $sCountry, $sState, $sCity, $sZip) = $aSearchParam['value']['array'];
|