summaryrefslogtreecommitdiff
path: root/program/steps/mail/search.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/mail/search.inc')
-rw-r--r--program/steps/mail/search.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index 4626b85f2..95ca67a12 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -96,15 +96,17 @@ $count = $IMAP->messagecount();
if (!is_array($_SESSION['search']))
$_SESSION['search'] = array();
+if ($search_str) {
+ $_SESSION['search'][$search_request] = $IMAP->get_search_set();
+ $_SESSION['last_text_search'] = $str;
+}
+
// Make sure we got the headers
if (!empty($result_h))
{
rcmail_js_message_list($result_h);
- if ($search_str) {
- $_SESSION['search'][$search_request] = $IMAP->get_search_set();
- $_SESSION['last_text_search'] = $str;
+ if ($search_str)
$OUTPUT->show_message('searchsuccessful', 'confirmation', array('nr' => $count));
- }
}
else
{