if ($oLookup) {
$aPlaces = $oPlaceLookup->lookup(array($oLookup->iId => $oLookup));
- if (sizeof($aPlaces)) {
+ if (!empty($aPlaces)) {
$aPlace = reset($aPlaces);
}
}
$aPlace['place_id'],
$aPlace['lon'],
$aPlace['lat'],
- $fRadius
+ $fRadius,
+ $fLat,
+ $fLon
);
if ($aOutlineResult) {
$aPlace = array_merge($aPlace, $aOutlineResult);
}
} else {
- $aPlace = [];
+ $aPlace = array();
}
+logEnd($oDB, $hLog, sizeof($aPlace)?1:0);
if (CONST_Debug) {
var_dump($aPlace);