X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fimap_search.php;h=3c253584a54e51270e2f613395b4f1c80add7189;hb=70f1b6b571061f9315cc1004e2fa9c18cf2efe11;hp=1a2d9008f40940d6bc6742ef659e375be8fd8da7;hpb=dba269b1a46865b6af9f2a1a4147fb9f566630bd;p=squirrelmail.git diff --git a/functions/imap_search.php b/functions/imap_search.php index 1a2d9008..3c253584 100644 --- a/functions/imap_search.php +++ b/functions/imap_search.php @@ -78,10 +78,7 @@ function sqimap_search($imapConnection, $search_where, $search_what, $mailbox, /* If nothing is found * SEARCH should be the first error else echo errors */ if (isset($errors)) { if (strstr($errors,'* SEARCH')) { - if ($search_all != 'all') { - echo '
' . _("No Messages Found") . '
'; - } - return; + return array(); } echo ""; } @@ -95,7 +92,7 @@ function sqimap_search($imapConnection, $search_where, $search_what, $mailbox, } $issent = ($mailbox == $sent_folder); - $msgs = fillMessageArray($imapConnection,$id,$issent,$cnt); + $msgs = fillMessageArray($imapConnection,$id,$cnt); return $msgs; }