Re: QuickForm, select bug?
| From: | Alexey Borzov | Date: | Fri, 04 Jul 2003 09:27:30 +0000 |
| Subject: | Re: QuickForm, select bug? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6464@lists.php.net to get a copy of this message | ||
Hi!
Wolfram Kriesing wrote:
in HTML_QuickForm_select there seems to be a bug.
Line 302 ($Id: select.php,v 1.20 2003/06/17 20:21:08 avb Exp $)
if (!in_array($value, $this->_values)) {
$this->_values[] = $value;
}
$this->_values is initialized with null at the top of this class, but it is used in "in_array" here, which causes the warning:
Warning: in_array(): Wrong datatype for second argument in .../HTML_QuickForm/QuickForm/select.php on line 302
Looks like a bug to me... I'll fix it.