X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/c433a2d739f9456224a83d4b3b3664b49c8d1775..a44e21de49d397d8fb6d860a03f1cde711be59c0:/lib/template/search-xml.php diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index 6ceb53cd..0521de0e 100644 --- a/lib/template/search-xml.php +++ b/lib/template/search-xml.php @@ -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)) {