| 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 (5559 days ago) |
| Due | |
| Updated | 09/30/2010 (5559 days ago) |
| Assigned | |
| Resolved | 09/30/2010 (5559 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
State ⇒ Duplicate
Bug:9273State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Tree initialization does not work for new users
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ Yes
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. */