summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-15 14:29:45 +0000
committeralecpl <alec@alec.pl>2008-11-15 14:29:45 +0000
commite2e745fb4ee52b11063a1654663c018084584586 (patch)
tree3ade8a7dad08cc8cd7f1eca6c90962a313ea60de /program/include
parent3d1e777b39479b7593966a2ad2db3d266c28de34 (diff)
- don't use SORT when SEARCH is better (sort field not specified)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php3
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);
}