$aResults = $this->lookup(array($iPlaceID => new Result($iPlaceID)));
- return sizeof($aResults) ? reset($aResults) : null;
+ return empty($aResults) ? null : reset($aResults);
}
public function lookup($aResults, $iMinRank = 0, $iMaxRank = 30)
{
- if (!sizeof($aResults)) {
+ if (empty($aResults)) {
return array();
}
$aSubSelects = array();
if (CONST_Debug) var_dump($aSubSelects);
- if (!sizeof($aSubSelects)) {
+ if (empty($aSubSelects)) {
return array();
}
return $aPlaces;
}
- private function getAddressDetails($iPlaceID, $bAll, $sHousenumber)
+ public function getAddressDetails($iPlaceID, $bAll = false, $sHousenumber = -1)
{
$sSQL = 'SELECT *,';
$sSQL .= ' get_name_by_language(name,'.$this->aLangPrefOrderSql.') as localname';