X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7e0fdf5928a0c726b22ad969267a3b9e0402c823..7fd40cb0e66919bbdd18715e92507a8a49be3e39:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index badf868d..e6501b57 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -22,9 +22,9 @@ class AddressDetails } $sSQL = 'SELECT *,'; - $sSQL .= ' get_name_by_language(name,'.$mLangPref.') as localname'; + $sSQL .= ' get_name_by_language(name,'.$mLangPref.') as localname'; $sSQL .= ' FROM get_addressdata('.$iPlaceID.','.$sHousenumber.')'; - $sSQL .= ' ORDER BY rank_address desc,isaddress DESC'; + $sSQL .= ' ORDER BY rank_address DESC, isaddress DESC'; $this->aAddressLines = chksql($oDB->getAll($sSQL)); } @@ -40,7 +40,7 @@ class AddressDetails return $this->aAddressLines; } - return array_filter($this->aAddressLines, 'AddressDetails::isAddress'); + return array_filter($this->aAddressLines, array(__CLASS__, 'isAddress')); } public function getLocaleAddress()