aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-12-03 17:18:36 +0100
committernodiscc <nodiscc@gmail.com>2014-12-03 17:18:36 +0100
commitdff9ee543d8194787bf087565e9242914c5d6393 (patch)
tree8161aede3ee58e862d5470ab409ad5cd7544292d /index.php
parentfdd8fb2be2c45bd810a2d8b55c1f2cbf7f655fe3 (diff)
parente5aab50ac4b76a167fa1938e318e77e5c7e4c855 (diff)
downloadShaarli-dff9ee543d8194787bf087565e9242914c5d6393.tar.gz
Shaarli-dff9ee543d8194787bf087565e9242914c5d6393.tar.zst
Shaarli-dff9ee543d8194787bf087565e9242914c5d6393.zip
Merge pull request #67 from e2jk/issue-66
Fix issue #66 by adding space before "selected"
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 35e83eb5..38958a79 100644
--- a/index.php
+++ b/index.php
@@ -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 .= "&nbsp;&nbsp;&nbsp;&nbsp;City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />"; 2179 $timezone_form .= "&nbsp;&nbsp;&nbsp;&nbsp;City: <select name=\"city\" id=\"city\">${cities[$pcontinent]}</select><br />";