X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7d9dbd62c7b600eea005b2626c1e6c2f70329619..88eaa8430b8ceb1696af50c603561a451353ed2a:/lib/AddressDetails.php?ds=sidebyside diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index 7b30d915..b62335d1 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; }