]> git.openstreetmap.org Git - nominatim.git/commitdiff
reverse webpage: don't choose zoom level 0 when none is given
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 22 Jan 2016 22:11:47 +0000 (23:11 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 22 Jan 2016 22:11:47 +0000 (23:11 +0100)
lib/template/address-html.php

index 1f18e96c04e5c357a11cf8edd01ee59a6158c49e..dbe982f0eed1e56a5362c0de5a77d5846942c3ee 100644 (file)
@@ -48,7 +48,7 @@
 
           foreach($aZoomLevels as $iZoomLevel => $sLabel)
           {
 
           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";
           }
         ?>
             echo '<option value="'.$iZoomLevel.'"'.($bSel?'selected':'').'>'.$iZoomLevel.' '.$sLabel.'</option>'."\n";
           }
         ?>