[Tickets #9276] Tree initialization does not work for new users

bugs at horde.org bugs at horde.org
Thu Sep 30 13:51:16 UTC 2010


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

Ticket URL: http://bugs.horde.org/ticket/9276
------------------------------------------------------------------------------
  Ticket             | 9276
  Created By         | horde at immerda.ch
  Summary            | Tree initialization does not work for new users
  Queue              | IMP
  Version            | 4.3.8
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


horde at immerda.ch (2010-09-30 09:51) wrote:

After upgrading to 4.3.8 new users got stuck after login, as the  
PHP-Script to initialize the imap-folder tree failed with the  
following error:

PHP Fatal error:  Unsupported operand types in  
/path/to/horde/imp/lib/IMAP/Tree.php on line 333

The following patch fixes the problem:

--- imp/lib/IMAP/Tree.php.old	2010-09-30 14:44:59.000000000 +0200
+++ imp/lib/IMAP/Tree.php	2010-09-30 14:46:22.000000000 +0200
@@ -327,6 +327,9 @@
              // See RFC 3501 [6.3.9]
              $names =  
array_flip(array_intersect($this->_getList(true), array_keys($names)));
          }
+        if (!isset($names)){
+            $names = array();
+        }

          if (!isset($names['INBOX'])) {
              /* INBOX must always appear. */







More information about the bugs mailing list