From 6f369100adc8e564afc5e0edb9aff407aa9c2a0e Mon Sep 17 00:00:00 2001 From: jmunro Date: Tue, 19 Mar 2002 23:00:42 +0000 Subject: [PATCH] a little more clean-up git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2610 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 90ef906d..fe275a1e 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -338,7 +338,7 @@ function user_strcasecmp($a, $b) { * See comment on sqimap_mailbox_parse() for info about the returned array. */ function sqimap_mailbox_list($imap_stream) { - global $boxesnew, $default_folder_prefix, $optional_delimiter; + global $boxesnew, $default_folder_prefix; if ( !isset( $boxesnew ) ) { @@ -467,8 +467,7 @@ function sqimap_mailbox_list($imap_stream) { $boxesnew[] = $box; $used[$k] = true; } - $spec_sub = $box['formatted']; - $spec_sub = str_replace(" ", "", $box['formatted']); + $spec_sub = str_replace(' ', '', $box['formatted']); if (!$used[$k] && preg_match("/^$default_folder_prefix(Sent|Drafts|Trash).{1}$spec_sub$/", $box['unformatted']) ) { $boxesnew[] = $box; $used[$k] = true; -- 2.25.1