diff options
author | Emilien Klein <emilien@klein.st> | 2014-12-02 23:42:23 +0100 |
---|---|---|
committer | Emilien Klein <emilien@klein.st> | 2014-12-02 23:42:23 +0100 |
commit | e5aab50ac4b76a167fa1938e318e77e5c7e4c855 (patch) | |
tree | 8161aede3ee58e862d5470ab409ad5cd7544292d /index.php | |
parent | fdd8fb2be2c45bd810a2d8b55c1f2cbf7f655fe3 (diff) | |
download | Shaarli-e5aab50ac4b76a167fa1938e318e77e5c7e4c855.tar.gz Shaarli-e5aab50ac4b76a167fa1938e318e77e5c7e4c855.tar.zst Shaarli-e5aab50ac4b76a167fa1938e318e77e5c7e4c855.zip |
Fix issue #66 by adding space before "selected"
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2167,13 +2167,13 @@ function templateTZform($ptz=false) | |||
2167 | $continent=substr($tz,0,$spos); $city=substr($tz,$spos+1); | 2167 | $continent=substr($tz,0,$spos); $city=substr($tz,$spos+1); |
2168 | $continents[$continent]=1; | 2168 | $continents[$continent]=1; |
2169 | if (!isset($cities[$continent])) $cities[$continent]=''; | 2169 | if (!isset($cities[$continent])) $cities[$continent]=''; |
2170 | $cities[$continent].='<option value="'.$city.'"'.($pcity==$city?'selected':'').'>'.$city.'</option>'; | 2170 | $cities[$continent].='<option value="'.$city.'"'.($pcity==$city?' selected':'').'>'.$city.'</option>'; |
2171 | } | 2171 | } |
2172 | } | 2172 | } |
2173 | $continents_html = ''; | 2173 | $continents_html = ''; |
2174 | $continents = array_keys($continents); | 2174 | $continents = array_keys($continents); |
2175 | foreach($continents as $continent) | 2175 | foreach($continents as $continent) |
2176 | $continents_html.='<option value="'.$continent.'"'.($pcontinent==$continent?'selected':'').'>'.$continent.'</option>'; | 2176 | $continents_html.='<option value="'.$continent.'"'.($pcontinent==$continent?' selected':'').'>'.$continent.'</option>'; |
2177 | $cities_html = $cities[$pcontinent]; | 2177 | $cities_html = $cities[$pcontinent]; |
2178 | $timezone_form = "Continent: <select name=\"continent\" id=\"continent\" onChange=\"onChangecontinent();\">${continents_html}</select>"; | 2178 | $timezone_form = "Continent: <select name=\"continent\" id=\"continent\" onChange=\"onChangecontinent();\">${continents_html}</select>"; |
2179 | $timezone_form .= " City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />"; | 2179 | $timezone_form .= " City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />"; |