diff --git a/form.php b/form.php index 15f4f84..a0ae83a 100644 --- a/form.php +++ b/form.php @@ -790,6 +790,10 @@ class formfield is_string ($this->values) && $this->values == $key) $res .= " selected='selected'"; + elseif (isset ($this->values) && + is_integer ($this->values) && + $this->values == $key) + $res .= " selected='selected'"; elseif (isset ($this->values) && is_array ($this->values) && in_array ($key, $this->values))