|
@@ -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 " <OPTION VALUE=\"$box\">$box2</option>\n";
|