瀏覽代碼

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 年之前
父節點
當前提交
9614a8fba3
共有 1 個文件被更改,包括 6 次插入4 次删除
  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);