From: Sarah Hoffmann Date: Fri, 22 Jan 2016 22:11:47 +0000 (+0100) Subject: reverse webpage: don't choose zoom level 0 when none is given X-Git-Tag: v.2.5.0~11 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/a9b370fcb2f73aac47363ffe75feaae2984fbe73?ds=sidebyside reverse webpage: don't choose zoom level 0 when none is given --- diff --git a/lib/template/address-html.php b/lib/template/address-html.php index 1f18e96c..dbe982f0 100644 --- a/lib/template/address-html.php +++ b/lib/template/address-html.php @@ -48,7 +48,7 @@ foreach($aZoomLevels as $iZoomLevel => $sLabel) { - $bSel = isset($_GET['zoom']) && ($_GET['zoom'] == $iZoomLevel); + $bSel = isset($_GET['zoom']) && ($_GET['zoom'] == (string)$iZoomLevel); echo ''."\n"; } ?>