]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-xml.php
Fix repeating lat twice in span instead of lat, lon.
[nominatim.git] / lib / template / search-xml.php
index 6ceb53cd3be6e25ece4baa1087838f918dd7bdd6..0521de0ec960c1f1a9b53d18e8d6b6d31672dc9e 100644 (file)
@@ -10,7 +10,7 @@
        echo " timestamp='".date(DATE_RFC822)."'";
        echo " attribution='Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.'";
        echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'";
-       if ($sViewBox) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
+       if (isset($sViewBox)) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'";
        echo " polygon='".($bShowPolygons?'true':'false')."'";
        if (sizeof($aExcludePlaceIDs))
        {