summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-01-29 18:40:45 +0000
committeralecpl <alec@alec.pl>2009-01-29 18:40:45 +0000
commit2a466a3b21f3dcc4cc5fa6e9684c944407d9efa6 (patch)
tree5ed3597951436c9358d31b1ebe699f4e1b88d258
parent5c771cb25e62494cba263097175d9b718acb8aba (diff)
- save empty search result in session
-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
{