]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-html.php
reverse webpage: don't choose zoom level 0 when none is given
[nominatim.git] / lib / template / address-html.php
index 1f18e96c04e5c357a11cf8edd01ee59a6158c49e..dbe982f0eed1e56a5362c0de5a77d5846942c3ee 100644 (file)
@@ -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 '<option value="'.$iZoomLevel.'"'.($bSel?'selected':'').'>'.$iZoomLevel.' '.$sLabel.'</option>'."\n";
           }
         ?>