[Tickets #3747] Re: Wrong array variable

bugs at horde.org bugs at horde.org
Tue Jul 29 08:58:13 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/3747
------------------------------------------------------------------------------
  Ticket             | 3747
  Updated By         | y_knight at hotmail.com
  Summary            | Wrong array variable
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Not A Bug
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


y_knight at hotmail.com (2008-07-29 04:58) wrote:

i have the below error on my plesk and i like some body to help me how  
to solve it


  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