X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c3233cb9512105d65442a40260cf16d8688d76a5..d396505786ce3be105249c740e0d3365beb4ef10:/lib/template/search-xml.php diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index 6ceb53cd..f8e054e3 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)) { @@ -45,7 +45,7 @@ if ($bShowPolygons && isset($aResult['aPolyPoints'])) { echo ' polygonpoints=\''; - echo javascript_renderData($aResult['aPolyPoints']); + echo json_encode($aResult['aPolyPoints']); echo '\''; } }