RE: [PEAR] [ANNOUNCEMENT] HTML_QuickForm-3.2.2 (stable) Released.
| From: | Daniel Kopp | Date: | Mon, 22 Mar 2004 16:59:10 +0000 |
| Subject: | RE: [PEAR] [ANNOUNCEMENT] HTML_QuickForm-3.2.2 (stable) Released. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26630@lists.php.net to get a copy of this message | ||
Hi!
I get a
Notice: Use of undefined constant e - assumed 'e' in xxx\hierselect.php(222)
: eval()'d code on line 1
Seems there should be:
function _setOptions()
{
$toLoad = '';
foreach (array_keys($this->_elements) AS $key) {
if (eval("return isset(\$this->_options['{$key}']{$toLoad});") ) {
$array = eval("return \$this->_options['{$key}']{$toLoad};");
if (is_array($array)) {
$select =& $this->_elements[$key];
$select->_options = array();
$select->loadArray($array);
$value = is_array($v = $select->getValue()) ? $v[0] : key($array);
$toLoad .= '[\''.$value.'\']';
}
}
}
} // end func _setOptions
but I don't know ... too complex to be able to easily say something here
I hope I am not the only person who sees NOTICES...
Otherwise you won't see this...
regards
Daniel
PS.: Open Source forever :-)