small fix to previous change: box could have been $used already
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 4 Apr 2005 19:21:26 +0000 (19:21 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 4 Apr 2005 19:21:26 +0000 (19:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9196 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 292ba46..24e85cd 100755 (executable)
@@ -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;
             }