From 1a7e1e97919ece18f4b96cef9bb251a52045da2a Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 9 Jul 2001 20:28:28 +0000 Subject: [PATCH] Removed bugs git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1440 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 0ed33a1c..1bb52b8a 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -162,13 +162,13 @@ $boxes[$g]['unformatted-disp'] = $mailbox; $boxes[$g]['id'] = $g; - if (isset($line[$g])) + $boxes[$g]['flags'] = array(); + if (isset($line[$g])) { ereg("\(([^)]*)\)",$line[$g],$regs); - $flags = trim(strtolower(str_replace('\\', '',$regs[1]))); - if ($flags) { - $boxes[$g]['flags'] = explode(' ', $flags); - } else - $boxes[$g]['flags'] = array(); + $flags = trim(strtolower(str_replace('\\', '',$regs[1]))); + if ($flags) + $boxes[$g]['flags'] = explode(' ', $flags); + } } return $boxes; -- 2.25.1