Re: DataObject setFrom with array values
| From: | Julie Knoll | Date: | Wed, 26 Jan 2005 21:42:16 +0000 |
| Subject: | Re: DataObject setFrom with array values | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17190@lists.php.net to get a copy of this message | ||
The problem is not only with date elements though. The problem is with any value that might be set as an array. For example a series of radio buttons or a multiple select field.
Julie
----Original Message Follows----
From: electroteque <daniel@electroteque.org>
To: papercrane@reversefold.com
CC: pear-general@lists.php.net, Alan Knowles <alan@akbkhome.com>, Julie Knoll <k_julie@hotmail.com>
Subject: Re: [PEAR] DataObject setFrom with array values
Date: Thu, 27 Jan 2005 08:24:50 +1100
Here was my mod which is in the MDB2_DataObject
//fix for form dates with arrays ??
if (is_array($from[sprintf($format,$k)]) && $items[$k] !== MDB2_DATAOBJECT_DATE) {
continue;
}