diff options
author | alecpl <alec@alec.pl> | 2008-11-15 14:29:45 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-11-15 14:29:45 +0000 |
commit | e2e745fb4ee52b11063a1654663c018084584586 (patch) | |
tree | 3ade8a7dad08cc8cd7f1eca6c90962a313ea60de /program/include/rcube_imap.php | |
parent | 3d1e777b39479b7593966a2ad2db3d266c28de34 (diff) |
- don't use SORT when SEARCH is better (sort field not specified)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 0eb9f7b36..3fe651de6 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -984,9 +984,8 @@ class rcube_imap */ function _search_index($mailbox, $criteria='ALL', $charset=NULL, $sort_field=NULL) { - if ($this->get_capability('sort')) + if ($sort_field && $this->get_capability('sort')) { - $sort_field = $sort_field ? $sort_field : $this->sort_field; $charset = $charset ? $charset : $this->default_charset; $a_messages = iil_C_Sort($this->conn, $mailbox, $sort_field, $criteria, FALSE, $charset); } |