X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsearch.php;h=7eb98a183faa78e51be51356758c4bff51f4fb4d;hb=6142318960928725ed3e2fe88ced7b5eb5397b0a;hp=3bdcbdbe5dfb3a789977c230fe406f5ffd965715;hpb=283db905a4ee927eee96513dec2054a35264302d;p=squirrelmail.git diff --git a/src/search.php b/src/search.php index 3bdcbdbe..7eb98a18 100644 --- a/src/search.php +++ b/src/search.php @@ -57,7 +57,7 @@ $boxes = sqimap_mailbox_list($imapConnection); for ($i = 0; $i < count($boxes); $i++) { - if ($boxes[$i]["flags"][0] != "noselect" && $boxes[$i]["flags"][1] != "noselect" && $boxes[$i]["flags"][2] != "noselect") { + if (!in_array("noselect", $boxes[$i]["flags"])) { $box = $boxes[$i]["unformatted"]; $box2 = replace_spaces($boxes[$i]["formatted"]); if ($mailbox == $box) @@ -80,22 +80,22 @@ echo " \n"; echo " \n";