X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a9c06d89c144fb90616e3a780029fe3d9bcfd90d..d3f7465ccad9cce6c84f0b089282c5ece550c5ed:/lib/template/address-html.php?ds=sidebyside
diff --git a/lib/template/address-html.php b/lib/template/address-html.php
index b4c7533e..165b2a9d 100644
--- a/lib/template/address-html.php
+++ b/lib/template/address-html.php
@@ -9,17 +9,19 @@
-
+
-
+0) { ?>
';
?>
@@ -116,9 +118,9 @@
isset($_GET['zoom']) ? htmlspecialchars($_GET['zoom']) : CONST_Default_Zoom,
- 'lat' => isset($_GET['lat']) ? htmlspecialchars($_GET['lat']) : CONST_Default_Lat,
- 'lon' => isset($_GET['lon']) ? htmlspecialchars($_GET['lon']) : CONST_Default_Lon,
+ 'zoom' => $iZoom !== false ? $iZoom : CONST_Default_Zoom,
+ 'lat' => $fLat !== false ? $fLat : CONST_Default_Lat,
+ 'lon' => $fLon !== false ? $fLon : CONST_Default_Lon,
'tile_url' => $sTileURL,
'tile_attribution' => $sTileAttribution
);