[Tickets #3747] NEW: Wrong array variable
bugs@bugs.horde.org
bugs at bugs.horde.org
Sat Apr 8 11:51:13 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3747
-----------------------------------------------------------------------
Ticket | 3747
Created By | stephen.cuppett at webmastersinc.net
Summary | Wrong array variable
Queue | Horde Framework Packages
Version | FRAMEWORK_3
State | Unconfirmed
Priority | 3. High
Type | Bug
Owners |
-----------------------------------------------------------------------
stephen.cuppett at webmastersinc.net (2006-04-08 11:51) wrote:
The following code in lib/Horde/DataTree.php is incorrect:
function set($data, $charset = null)
{
$cats = array();
$cids = array();
foreach ($data as $id => $cat) {
if (!is_null($charset)) {
$cat[1] = String::convertCharset($cat[1], $charset);
}
$cids[$cat[0]] = $cat[1];
$cparents[$cat[0]] = $cat[2];
$corders[$cat[0]] = $cat[3];
$sorders[$cat[0]] = $id;
}
It creates the array cats, but then proceeds to use "cat" for the rest of
the code. This causes the PHP fatal error:
PHP Fatal error: Cannot use object of type DB_mysql as array in
/usr/share/psa-horde/lib/Horde/DataTree.php on line 657.
This problem exists in 3.1.1
More information about the bugs
mailing list