From a3c630eec548546589b4ef7971f31c0014464529 Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 2 Feb 2001 21:00:31 +0000 Subject: [PATCH 1/1] Hopefully fixes problem with "wrong datatype for second argument to in_array" git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1047 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index c51dd746..1e4b69c8 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -523,7 +523,8 @@ $boxes = sqimap_mailbox_list($imapConnection); for ($i = 0; $i < count($boxes); $i++) { - if (!in_array("noselect", $boxes[$i]["flags"])) { + if (!is_array($boxes[$i]['flags']) || + !in_array("noselect", $boxes[$i]['flags'])) { $box = $boxes[$i]['unformatted']; $box2 = replace_spaces($boxes[$i]['unformatted-disp']); echo " \n"; -- 2.25.1