QuickForm, select bug?

From: Date: Thu, 03 Jul 2003 19:07:47 +0000
Subject: QuickForm, select bug?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6445@lists.php.net to get a copy of this message
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 this happens when i add the option $el->addOption('',null,array('selected'=>true)); i dont know if the value rather shall be initialized with array() or if another fix would solve it. hth -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

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