Browse Source

Need this check, otherwise some weird stuff occurs with exchange, and only
the last root folder is displayed (in my case it was "Tasks").

jangliss 22 years ago
parent
commit
9614a8fba3
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/left_main.php

+ 6 - 4
src/left_main.php

@@ -397,10 +397,12 @@ function listBoxes ($boxes, $j=0 ) {
             $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);