Przeglądaj źródła

* To make sure that $indent is always greater than zero (error removal)

Tyler Akins 24 lat temu
rodzic
commit
856eb4e0a5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

@@ -141,7 +141,7 @@
             (ereg("^".$folder_prefix, $mailbox)) ||
             (ereg("^".$folder_prefix, $mailbox)) ||
             ( isset($boxesbyname[$parentfolder]) && (strlen($parentfolder) > 0) ) ) {
             ( isset($boxesbyname[$parentfolder]) && (strlen($parentfolder) > 0) ) ) {
             $indent = $dm_count - (countCharInString($folder_prefix, $dm));
             $indent = $dm_count - (countCharInString($folder_prefix, $dm));
-            if ($indent)
+            if ($indent > 0)
                 $boxes[$g]["formatted"]  = str_repeat("  ", $indent);
                 $boxes[$g]["formatted"]  = str_repeat("  ", $indent);
             else
             else
                 $boxes[$g]["formatted"] = '';
                 $boxes[$g]["formatted"] = '';