Package: horde3
Version: 3.0.4-4
Affects: imp4

This Bug affects IMP4, because that's the place, where you will see it
occuring. If you are in folder view ("Folders" on the top menu) and
then click on "Collapse All" you get this error message:
===snip===
Notice: Undefined index: v in
/usr/share/horde3/lib/Horde/IMAP/Tree.php on line 1555

Notice: Undefined index: v in
/usr/share/horde3/lib/Horde/IMAP/Tree.php on line 1258
===snap===

I'm using "PHP 4.3.10-15".

This is also described in
http://lists.horde.org/archives/imp/Week-of-Mon-20050530/042273.html
and seems to be a horde3 and not an imp4 problem.

Solution:
I downloaded Horde 3.0.5, and edited the original Tree.php and
inserted at about line 1555 the code of the updated Tree.php. Please
see attached patch for details. It seems to work.

Bye,
Simon

-- 
  [bysf]
  simon frettloeh # mailto:[EMAIL PROTECTED]
  pgp keyid:0x372A2577 # available on all public key servers

--- old/Tree.php        2005-08-05 19:14:07.000000000 +0000
+++ /usr/share/horde3/lib/Horde/IMAP/Tree.php   2005-08-05 19:19:17.000000000 
+0000
@@ -1551,9 +1551,11 @@
      */
     function collapseAll()
     {
-        foreach ($this->_tree as $val) {
-            $this->collapse($val['v']);
-        }
+        foreach ($this->_tree as $key => $val) {
+            if ($key != IMAPTREE_BASE_ELT) {
+                $this->collapse($val['v']);
+            }
+       }
     }
 
     /**

Reply via email to