web: performance tweak suggested by Scrutinizer

This commit is contained in:
David Anderson 2017-02-12 01:07:20 -08:00
parent 93c46ee5a8
commit 479cbb6154
1 changed files with 1 additions and 2 deletions

View File

@ -510,8 +510,7 @@ function country_select_options($selected_country="None") {
}
$x = "";
for ($i=0; $i<count($countries); $i++) {
$country = $countries[$i];
foreach ($countries as $country) {
$selected = ($selected_country == $country ? "selected":"");
$x .= "<option value=\"$country\" $selected>$country</option>\n";
}