/* 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 '<br><CENTER>' . _("No Messages Found") . '</CENTER>';
- }
- return;
+ return array();
}
echo "<!-- $errors -->";
}
}
$issent = ($mailbox == $sent_folder);
- $msgs = fillMessageArray($imapConnection,$id,$issent,$cnt);
+ $msgs = fillMessageArray($imapConnection,$id,$cnt);
return $msgs;
}