浏览代码

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

Tyler Akins 24 年之前
父节点
当前提交
856eb4e0a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/imap_mailbox.php

+ 1 - 1
functions/imap_mailbox.php

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