]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix issue #66 by adding space before "selected" 67/head
authorEmilien Klein <emilien@klein.st>
Tue, 2 Dec 2014 22:42:23 +0000 (23:42 +0100)
committerEmilien Klein <emilien@klein.st>
Tue, 2 Dec 2014 22:42:23 +0000 (23:42 +0100)
index.php

index 35e83eb54498613497c9f926939e38dc2eab6edd..38958a79f199b1104acadf81fd7f4573df00c553 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2167,13 +2167,13 @@ function templateTZform($ptz=false)
                 $continent=substr($tz,0,$spos); $city=substr($tz,$spos+1);
                 $continents[$continent]=1;
                 if (!isset($cities[$continent])) $cities[$continent]='';
-                $cities[$continent].='<option value="'.$city.'"'.($pcity==$city?'selected':'').'>'.$city.'</option>';
+                $cities[$continent].='<option value="'.$city.'"'.($pcity==$city?' selected':'').'>'.$city.'</option>';
             }
         }
         $continents_html = '';
         $continents = array_keys($continents);
         foreach($continents as $continent)
-            $continents_html.='<option  value="'.$continent.'"'.($pcontinent==$continent?'selected':'').'>'.$continent.'</option>';
+            $continents_html.='<option  value="'.$continent.'"'.($pcontinent==$continent?' selected':'').'>'.$continent.'</option>';
         $cities_html = $cities[$pcontinent];
         $timezone_form = "Continent: <select name=\"continent\" id=\"continent\" onChange=\"onChangecontinent();\">${continents_html}</select>";
         $timezone_form .= "&nbsp;&nbsp;&nbsp;&nbsp;City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />";