]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-xml.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / template / address-xml.php
index 6183b284dbc3e8df471ffc719e438e1de83dd17a..5eddfa3e2410a262d74d02655e4f4537bdf0bfdc 100644 (file)
@@ -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 "<error>$sError</error>";
     else echo '<error>Unable to geocode</error>';