Re: QuickForm, select bug?

From: Date: Fri, 04 Jul 2003 09:42:58 +0000
Subject: Re: QuickForm, select bug?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6466@lists.php.net to get a copy of this message
<borz_off@cs.msu.su> wrote : > 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. Who's going to fix it in HTML_Select then ;) Bertrand Mansion Mamasam

« previous php.pear.general (#6466) next »