forked from extern/egroupware
Reset the country array in case this gets called twice in one page
This commit is contained in:
parent
25f39e4837
commit
8f49481960
@ -12,8 +12,8 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
class country
|
||||
{
|
||||
class country
|
||||
{
|
||||
var $country_array;
|
||||
|
||||
function country()
|
||||
@ -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";
|
||||
@ -281,5 +282,5 @@ class country
|
||||
{
|
||||
return($this->country_array[$selected]);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user