From 66c1aad9937992a1ef66ede818779f36f20c9c26 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 4 Apr 2005 19:21:26 +0000 Subject: [PATCH] small fix to previous change: box could have been $used already git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9196 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 292ba46b..24e85cd8 100755 --- a/functions/imap_mailbox.php +++ b/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; } -- 2.25.1