reverse webpage: don't choose zoom level 0 when none is given

This commit is contained in:
Sarah Hoffmann 2016-01-22 23:11:47 +01:00
parent 355d1efe21
commit a9b370fcb2

View 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";
}
?>