X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/27bc8d4f7bb907699dbb974e8159f75bead831c9..88eaf7fb94a112350c954cc6dd7e34b3408d461a:/lib/template/address-xml.php?ds=inline diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php index 5eddfa3e..a17da738 100644 --- a/lib/template/address-xml.php +++ b/lib/template/address-xml.php @@ -48,9 +48,9 @@ if (empty($aPlace)) { } echo '>'.htmlspecialchars($aPlace['langaddress']).''; - if (isset($aPlace['aAddress'])) { + if (isset($aPlace['address'])) { echo ''; - foreach ($aPlace['aAddress'] as $sKey => $sValue) { + foreach ($aPlace['address']->getAddressNames() as $sKey => $sValue) { $sKey = str_replace(' ', '_', $sKey); echo "<$sKey>"; echo htmlspecialchars($sValue);