$aFilteredPlaces['display_name'] = $aPlace['langaddress'];
$aFilteredPlaces['name'] = $aPlace['placename'];
- if ($bShowAddressDetails) $aFilteredPlaces['address'] = $aAddress;
+ if ($bShowAddressDetails && $aAddress && sizeof($aAddress)) $aFilteredPlaces['address'] = $aAddress;
}
javascript_renderData($aFilteredPlaces);