6.0.0-beta1
7/21/25

[#9276] Tree initialization does not work for new users
Summary Tree initialization does not work for new users
Queue IMP
Queue Version 4.3.8
Type Bug
State Duplicate
Priority 3. High
Owners
Requester horde (at) immerda (dot) ch
Created 09/30/2010 (5408 days ago)
Due
Updated 09/30/2010 (5408 days ago)
Assigned
Resolved 09/30/2010 (5408 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
09/30/2010 01:57:37 PM Michael Rubinsky Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of Bug:9273
09/30/2010 01:51:16 PM horde (at) immerda (dot) ch Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Tree initialization does not work for new users
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ Yes
Reply to this comment
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. */

Saved Queries