summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-19 16:15:36 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-19 16:15:36 +0000
commitc4a5976a74e73aee4e7248e1a73727dd19ce4e40 (patch)
tree75372e2b3e7cb591939d567346bfec1fc1fee897 /roundcubemail
parentc74fcffaec57f581ecedf8ed22a36e6416ab6bfa (diff)
- Fix PHP error when fetching messages index when threaded mode is enabled
git-svn-id: https://svn.roundcube.net/trunk@5244 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/program/include/rcube_imap.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index f95f7cef4..58bad75c8 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/program/include/rcube_imap.php
@@ -1505,7 +1505,10 @@ class rcube_imap
// use message index sort as default sorting
if (!$sort_field) {
if ($this->skip_deleted) {
- $a_index = $this->_search_index($mailbox, 'ALL');
+ $a_index = $this->conn->search($mailbox, 'ALL UNDELETED');
+ // I didn't found that SEARCH should return sorted IDs
+ if (is_array($a_index))
+ sort($a_index);
} else if ($max = $this->_messagecount($mailbox)) {
$a_index = range(1, $max);
}