Reset the country array in case this gets called twice in one page

This commit is contained in:
Miles Lott 2001-05-21 16:13:13 +00:00
parent 25f39e4837
commit 8f49481960

View File

@ -269,6 +269,7 @@ class country
$name = 'country';
}
$str = '<select name="'.$name.'">'."\n";
reset($this->country_array);
while(list($key,$value) = each($this->country_array))
{
$str .= ' <option value="'.$key.'"'.($selected == $key?' selected':'').'>'.$value.'</option>'."\n";