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

@ -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]);
}
}
}
?>