浏览代码

small fix to previous change: box could have been $used already

Thijs Kinkhorst 20 年之前
父节点
当前提交
e763660ff0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/imap_mailbox.php

+ 2 - 2
functions/imap_mailbox.php

@@ -680,8 +680,8 @@ function sqimap_mailbox_list($imap_stream, $force=false) {
 
         /* Find INBOX's children */
         for($k = 0; $k < $cnt; ++$k) {
-            if (isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') && 
-            strtolower($boxesall[$k]['unformatted']) <> 'inbox') {
+            if (!$used[$k] && isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') && 
+            strtolower($boxesall[$k]['unformatted']) != 'inbox') {
                 $boxesnew[] = $boxesall[$k];
                 $used[$k] = true;
             }