X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d79a2bb17eef64945f776deae2e43068ecc05b65..27bc8d4f7bb907699dbb974e8159f75bead831c9:/lib/template/address-xml.php?ds=sidebyside diff --git a/lib/template/address-xml.php b/lib/template/address-xml.php index 6183b284..5eddfa3e 100644 --- a/lib/template/address-xml.php +++ b/lib/template/address-xml.php @@ -11,7 +11,7 @@ echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.ope echo " querystring='".htmlspecialchars($_SERVER['QUERY_STRING'], ENT_QUOTES)."'"; echo ">\n"; -if (!sizeof($aPlace)) { +if (empty($aPlace)) { if (isset($sError)) echo "$sError"; else echo 'Unable to geocode';