X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_search.php;h=a9cda0660a1fc32bf1920dac85f614a88db5a80b;hb=2df6ca53f811434d052179c620da81a8a5246d2f;hp=de6bf6d8e324dc70c3d8d80eeffcd3e8b42aa139;hpb=6142318960928725ed3e2fe88ced7b5eb5397b0a;p=squirrelmail.git diff --git a/functions/imap_search.php b/functions/imap_search.php index de6bf6d8..a9cda066 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -39,8 +39,10 @@ function sqimap_search($imapConnection,$search_where,$search_what,$mailbox,$colo #Check to see if a SEARCH Responce was recived if (substr($readin[$c],0,9) == "* SEARCH ") $messagelist = explode(" ",substr($readin[$c],9)); - else + else if (isset($errors)) $errors = $errors.$readin[$c]; + else + $errors = $readin[$c]; $c++; }