Re: RE: [PEAR] [ANNOUNCEMENT] HTML_QuickForm-3.2.2 (stable) Released.
| From: | Bertrand Mansion | Date: | Mon, 22 Mar 2004 17:24:07 +0000 |
| Subject: | Re: 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-26631@lists.php.net to get a copy of this message | ||
<pear@daniu.de> wrote :
> 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...
Hi,
I have sent this report to Herim Vasquez who wrote the new hierselect.
It would also be nice from you if you could send a little piece of code to
reproduce the bug. Thanks,
Bertrand Mansion
Mamasam