From 4df5d8235a958746310738d7572a6060fd67b04f Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 2 Jun 2004 10:36:01 +0000 Subject: [PATCH] fixed warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7584 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index e85f6fde..0a50cf86 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -514,7 +514,8 @@ function sqimap_mailbox_option_list($imap_stream, $show_selected = 0, $folder_sk } foreach ($boxes as $boxes_part) { - if ($flag == NULL || !in_array($flag, $boxes_part['flags'])) { + if ($flag == NULL || (is_array($boxes_part['flags']) + && !in_array($flag, $boxes_part['flags']))) { $box = $boxes_part['unformatted']; if ($folder_skip != 0 && in_array($box, $folder_skip) ) { -- 2.25.1