QuickForm - toArray() & addData()
| From: | Alan Richmond | Date: | Thu, 13 Mar 2003 01:42:07 +0000 |
| Subject: | QuickForm - toArray() & addData() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14233@lists.php.net to get a copy of this message | ||
Hi Bertrand,
Discovered that toArray() breaks if a QuickForm contains data added with
addData(). toArray only expects to find element objects and addData() is an
array.
Locally, I've changed line 2249 from:
} else {
to:
} elseif (is_object($element)) {
but I'm not that familiar QuickForm source, so that's probably not the best
solution.
-Alan