Need this check, otherwise some weird stuff occurs with exchange, and only
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 15 Jun 2003 05:11:12 +0000 (05:11 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 15 Jun 2003 05:11:12 +0000 (05:11 +0000)
the last root folder is displayed (in my case it was "Tasks").

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5045 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index aaa90f1cc571a92ca61f83d2cad1fb697550498a..51632dd1bc75a18629adba240a15323a5e2cd45e 100644 (file)
@@ -397,10 +397,12 @@ function listBoxes ($boxes, $j=0 ) {
             $fontend = "</font>";
         }
         $end .= '</nobr>';
             $fontend = "</font>";
         }
         $end .= '</nobr>';
-        
-        echo "" . $pre .$font. $boxes->mailboxname_sub .$fontend . $end. '<br />' . "\n";
-        $j++;
-        
+
+        if (!$boxes->is_root) {
+            echo "" . $pre .$font. $boxes->mailboxname_sub .$fontend . $end. '<br />' . "\n";
+            $j++;
+        }
+
         if (!$collapse || $boxes->is_root) {
             for ($i = 0; $i <count($boxes->mbxs); $i++) {
                 listBoxes($boxes->mbxs[$i],$j);
         if (!$collapse || $boxes->is_root) {
             for ($i = 0; $i <count($boxes->mbxs); $i++) {
                 listBoxes($boxes->mbxs[$i],$j);