6.0.0-beta1
7/5/25

[#7976] hook_msglist_format Fatal error: Cannot use object of type PEAR_Error as array
Summary hook_msglist_format Fatal error: Cannot use object of type PEAR_Error as array
Queue IMP
Queue Version 4.3.2
Type Bug
State Resolved
Priority 1. Low
Owners
Requester dom.lalot (at) gmail (dot) com
Created 02/12/2009 (5987 days ago)
Due
Updated 02/16/2009 (5983 days ago)
Assigned
Resolved 02/15/2009 (5984 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/16/2009 09:15:11 PM CVS Commit Comment #5 Reply to this comment
02/15/2009 05:07:59 AM Chuck Hagenbuch Comment #4
State ⇒ Resolved
Reply to this comment
Committed (just called is_array instead, to catch false or whatever 
too), thanks!
02/15/2009 05:07:37 AM CVS Commit Comment #3 Reply to this comment
02/12/2009 04:16:24 PM dom (dot) lalot (at) gmail (dot) com Comment #2
New Attachment: Nouveau Document texte[1].txt Download
Reply to this comment
I used the diff in the wrong side. Here is the patch again!

[Show Quoted Text - 14 lines]
02/12/2009 04:13:06 PM dom (dot) lalot (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
New Attachment: Nouveau Document texte.txt Download
Patch ⇒ No
Milestone ⇒
Summary ⇒ hook_msglist_format Fatal error: Cannot use object of type PEAR_Error as array
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ IMP
Reply to this comment
I activated under dimp the predefined hook:



  if (!function_exists('_dimp_hook_msglist_format')) {

      function _dimp_hook_msglist_format($mailbox, $uid)

      {

And in dimp works like a charm. But switching to imp I got:

Fatal error: Cannot use object of type PEAR_Error as array in 
/var/www/perso/horde-webmail-1.2.1/imp/mailbox.php on line 786



So I patched mailbox.php no to use the object if pear_error, but there 
is may be other things to do.. Anyway it works



Dom


Saved Queries