[Tickets #7891] hook msglist_format

bugs at horde.org bugs at horde.org
Mon Jan 26 11:26:54 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/7891
------------------------------------------------------------------------------
  Ticket             | 7891
  Created By         | rsalmon at mbpgroup.com
  Summary            | hook msglist_format
  Queue              | IMP
  Version            | HEAD
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2009-01-26 06:26) wrote:

I'm getting the following warnings when enabling $conf[hooks][msglist_format]

Notice: Undefined index: status in  
/var/www/html/horde/imp/config/hooks.php on line 245
Warning: array_merge() [function.array-merge]: Argument #1 is not an  
array in /var/www/html/horde/imp/mailbox.php on line 26

patches:
--- hooks.php.org	2009-01-26 12:21:21.000000000 +0100
+++ hooks.php	2009-01-26 12:25:22.000000000 +0100
@@ -220,7 +220,8 @@
          foreach ($uids as $uid) {
              $tmp = array();
              $res_ptr = &$imap_res[$uid];
-
+            $tmp['status'];
+
              // Add attachment information
              if (($attachment =  
$imp_ui->getAttachmentType($res_ptr['structure']->getType()))) {
                  switch ($mode) {

--- mailbox.php.org	2009-01-26 12:22:58.000000000 +0100
+++ mailbox.php	2009-01-26 12:26:31.000000000 +0100
@@ -23,7 +23,8 @@
              $ptr = &$msgs[$uid];

              if (!empty($val['class'])) {
-                $ptr['bg'] = array_merge($ptr['bg'], $val['class']);
+                $tmp['bg'] = $ptr['bg'];
+                $ptr['bg'] = array_merge($tmp, $val['class']);
              }

              if (!empty($val['flagbits'])) {







More information about the bugs mailing list