X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2a4198f94d1c52bb7e0042cf1b4074f277538384..2ab836c11c3f4aa57a71aec18594ae59566b850c:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index f5293586..2d40c84f 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -31,7 +31,7 @@ class AddressDetails private static function isAddress($aLine) { - return $aLine['isaddress'] == 't' || $aLine['type'] == 'country_code'; + return $aLine['isaddress'] || $aLine['type'] == 'country_code'; } public function getAddressDetails($bAll = false) @@ -49,7 +49,7 @@ class AddressDetails $sPrevResult = ''; foreach ($this->aAddressLines as $aLine) { - if ($aLine['isaddress'] == 't' && $sPrevResult != $aLine['localname']) { + if ($aLine['isaddress'] && $sPrevResult != $aLine['localname']) { $sPrevResult = $aLine['localname']; $aParts[] = $sPrevResult; }