[Tickets #6813] Re: Warning: Cannot use a scalar value as an array in Tree.php on line 1139

bugs at horde.org bugs at horde.org
Sun Jun 1 11:08:42 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/6813
-----------------------------------------------------------------------
 Ticket             | 6813
 Updated By         | jhorner at arinbe.com
 Summary            |  Warning: Cannot use a scalar value as an array in
Tree.php on line 1139
 Queue              | IMP
 Version            | 4.2
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Milestone          |
 Patch              |
 Owners             |
-----------------------------------------------------------------------


jhorner at arinbe.com (2008-06-01 07:07) wrote:

We make heavy use of shared/public folders. I was trying to find a way to
make the folders display more like what my users see on their desktop and
that is have their private folders under INBOX and the shared folders on
the same level as INBOX. I've read the futile tickets on that subject so I
won't complain. The warning message "Warning: Cannot use a scalar value as
an array in Tree.php on line 1139" occurs when I switch to "show
non-private mailboxes in separate folders". It says warning but the web
page fails to render properly. The alternative "combine all namespaces" has
no problems but it is also what I am trying to avoid. We are using a
dovecot server and my namespace configuration (cut to show a few
shared/public folders) is

$servers['imap'] = array(
    'name' => 'Mail Server',
    'server' => 'localhost',
    'hordeauth' => true,
    'protocol' => 'imap/notls',
    'port' => '143',
    'imap_config' => array(
        'children' => true,
        'namespace' => array(
            'INBOX.' => array(
                'name' => 'INBOX.',
                'delimiter' => '.',
                'type' => 'personal',
                'hidden' => false
            ),
            'COMPANY.' => array(
                'name' => 'COMPANY.',
                'delimiter' => '.',
                'type' => 'shared',
                'hidden' => false
            ),
            'ROOTMAIL.' => array(
                'name' => 'ROOTMAIL.',
                'delimiter' => '.',
                'type' => 'shared',
                'hidden' => false
            )
        ),
        'search_charset' => array(
            'UTF-8' => true
        )
    )
);

The function causing the problem is

    function _setAttribute(&$elt, $const, $bool)
    {
        if ($bool) {
            $elt['a'] |= $const; <--- line 1139
        } else {
            $elt['a'] &= ~$const;
        }
    }






More information about the bugs mailing list