Hello,
I installed horde/imp-alpha top on horde/horde-alpha by pear installer.
When I click the 'print' icon on the message view, following error message
is logged to apache log file.

[error] [client x.x.x.x] PHP Fatal error: Call to a member function error() on a non-object in /usr/local/www/horde4/imp/lib/Ui/Mailbox.php on line 178, referer: http://xxx.xxx/horde4/imp/message.php?mailbox=INBOX&uid=10

This patch will resolve this error.
Is this ok ?

--- imp/view.php.orig   2011-03-09 17:01:30.000000000 +0900
+++ imp/view.php        2011-03-10 15:00:32.000000000 +0900
@@ -240,7 +240,8 @@
                     /* Format date string. */
                     if ($key == 'date') {
                         $imp_ui_mbox = new IMP_Ui_Mailbox();
- $hdr_val = $imp_ui_mbox->getDate($hdr_val, IMP_Ui_Mailbox::DATE_FORCE | IMP_Ui_Mailbox::DATE_FULL);
+                        $hdr_date = new Horde_Imap_Client_DateTime($hdr_val);
+ $hdr_val = $imp_ui_mbox->getDate($hdr_date, IMP_Ui_Mailbox::DATE_FORCE | IMP_Ui_Mailbox::DATE_FULL);
                     }

                     $headers[] = array(

-=-=-=-=-
Hiromi KIMURA http://www.tac.tsukuba.ac.jp/~hiromi/
PGP Fingerprint16 = 2A 27 2E 46 9E 75 4E 3D  E3 FD 5A DC 2A AA 3A 2E
--
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]

Reply via email to