From: lkehresman Date: Mon, 28 Aug 2000 18:57:28 +0000 (+0000) Subject: fixed double folder problem X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=ee62ce13b883f1344292e9d4e5751c671d743bce fixed double folder problem git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@727 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index cd62dc0..8bfd0db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Version 0.5pre2 -- DEVELOPMENT ------------------------------ +- Fixed double folder problem on some servers - Using encryption for passwords - Added a patch from Bill Thousand to allow easier virtual domains - Security updates with attachments diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 422638e..26d05d1 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -169,6 +169,13 @@ if ($sorted_lsub_ary[$i] == "INBOX") $inbox_subscribed = true; } + $new_ary = array(); + for ($i=0; $i < count($sorted_lsub_ary); $i++) { + if (!in_array($sorted_lsub_ary[$i], $new_ary)) { + $new_ary[] = $sorted_lsub_ary[$i]; + } + } + $sorted_lsub_ary = $new_ary; if (isset($sorted_lsub_ary)) { sort($sorted_lsub_ary); }