<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Tree initialization does not work for new users</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:44 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9276</link> 
  <atom:link rel="self" type="application/rss+xml" title="Tree initialization does not work for new users" href="https://bugs.horde.org/ticket/9276/rss" /> 
  <description>Tree initialization does not work for new users</description> 
 
   
   
  <item> 
   <title>After upgrading to 4.3.8 new users got stuck after login, as</title> 
   <description>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-&gt;_getList(true), array_keys($names)));
         }
+        if (!isset($names)){
+            $names = array();
+        }
 
         if (!isset($names[&#039;INBOX&#039;])) {
             /* INBOX must always appear. */
</description> 
   <pubDate>Thu, 30 Sep 2010 13:51:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9276#t60216</link> 
  </item> 
   
  <item> 
   <title>Duplicate of Bug:9273</title> 
   <description>Duplicate of Bug:9273</description> 
   <pubDate>Thu, 30 Sep 2010 13:57:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9276#t60217</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
