[Tickets #1899] NEW: Reply to message generates array to string error

bugs@bugs.horde.org bugs at bugs.horde.org
Mon May 2 12:15:30 PDT 2005


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

Ticket URL: http://bugs.horde.org/ticket/?id=1899
-----------------------------------------------------------------------
 Ticket             | 1899
 Created By         | ben at cpanel.net
 Summary            | Reply to message generates array to string error
 Queue              | IMP
 Version            | 4.0.3
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
+New Attachment     | Horde_array_to_string_in_reply.patch
-----------------------------------------------------------------------


ben at cpanel.net (2005-05-02 12:15) wrote:

Notice: Array to string conversion in
/usr/local/cpanel/base/horde/imp/lib/Compose.php on line 769

Apparently the '/%m/' array element in $match is a blank array. Seems to
only occur on one of the messages in the inbox. Here's the array element:

/* Message-ID. */
'/%m/' => $h->getOb('message_id'),

I patched our Compose.php with this line before the preg_replace:

if (!$match['/%m/']) { $match['/%m/'] = ''; }

It's a silly hack, but prevents the issue from manifesting in the user's
browser. I suspect that it's really an issue with PHP's imap_headerinfo.

Using PHP 4.3.10

Patch is attached.




More information about the bugs mailing list