summaryrefslogtreecommitdiff
path: root/program/steps/mail/search.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-11 10:57:24 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-11 10:57:24 +0200
commite0efd8f5dc9bcdb7559c71386aa3c91c1230e8d3 (patch)
treefae2e6c0a49aee23348e1e305d2582114cab5f6e /program/steps/mail/search.inc
parentc4a2264ae7a4f333116a558c104dbc0f98aab774 (diff)
Added separate From and To columns apart from smart From/To column (#1486891)
Diffstat (limited to 'program/steps/mail/search.inc')
-rw-r--r--program/steps/mail/search.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc
index a7605f6d0..b0d584100 100644
--- a/program/steps/mail/search.inc
+++ b/program/steps/mail/search.inc
@@ -107,7 +107,7 @@ $search_str = trim($search_str);
// execute IMAP search
if ($search_str)
- $RCMAIL->storage->search($mbox, $search_str, $imap_charset, $_SESSION['sort_col']);
+ $RCMAIL->storage->search($mbox, $search_str, $imap_charset, $sort_column);
// save search results in session
if (!is_array($_SESSION['search']))
@@ -121,7 +121,7 @@ $_SESSION['search_request'] = $search_request;
// Get the headers
-$result_h = $RCMAIL->storage->list_messages($mbox, 1, $_SESSION['sort_col'], $_SESSION['sort_order']);
+$result_h = $RCMAIL->storage->list_messages($mbox, 1, rcmail_sort_column(), rcmail_sort_order());
$count = $RCMAIL->storage->count($mbox, $RCMAIL->storage->get_threading() ? 'THREADS' : 'ALL');