Explorar el Código

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 hace 22 años
padre
commit
9614a8fba3
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      src/left_main.php

+ 6 - 4
src/left_main.php

@@ -397,10 +397,12 @@ function listBoxes ($boxes, $j=0 ) {
             $fontend = "</font>";
             $fontend = "</font>";
         }
         }
         $end .= '</nobr>';
         $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) {
         if (!$collapse || $boxes->is_root) {
             for ($i = 0; $i <count($boxes->mbxs); $i++) {
             for ($i = 0; $i <count($boxes->mbxs); $i++) {
                 listBoxes($boxes->mbxs[$i],$j);
                 listBoxes($boxes->mbxs[$i],$j);