summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-15 11:48:41 +0000
committeralecpl <alec@alec.pl>2008-11-15 11:48:41 +0000
commit3d1e777b39479b7593966a2ad2db3d266c28de34 (patch)
treee3c4a26c030c6e08dbca1328b3223217a3d2aaff /program/include
parent84b884d761780f24b75a41bd0a855dd3aa628df6 (diff)
- fix for skip_deleted (#1485553)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index d867f942c..0eb9f7b36 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -982,10 +982,14 @@ class rcube_imap
* @access private
* @see rcube_imap::search()
*/
- function _search_index($mailbox, $criteria='ALL', $charset='', $sort_field='')
+ function _search_index($mailbox, $criteria='ALL', $charset=NULL, $sort_field=NULL)
{
if ($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);
+ }
else
$a_messages = iil_C_Search($this->conn, $mailbox, ($charset ? "CHARSET $charset " : '') . $criteria);