summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-04 13:00:36 +0000
committeralecpl <alec@alec.pl>2009-09-04 13:00:36 +0000
commite6f484250561b6e9c8fe72cde0f1a633e88103ae (patch)
treea684f1d6b35843be1ac8537afcb5f28cc328d257 /program
parent36969ee7d90307eeee55274b2d281cc497b182e7 (diff)
- remove test code
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index d904edb9b..6940bd19f 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -598,7 +598,7 @@ class rcube_imap
// retrieve headers from IMAP
$a_msg_headers = array();
- if ($this->get_capability('sort') && ($msg_index = iil_C_Sort($this->conn, $mailbox, $this->sort_field, $this->skip_deleted ? 'UNDELETED' : '')))
+ if (!$this->get_capability('sort') && ($msg_index = iil_C_Sort($this->conn, $mailbox, $this->sort_field, $this->skip_deleted ? 'UNDELETED' : '')))
{
list($begin, $end) = $this->_get_message_range(count($msg_index), $page);
$max = max($msg_index);
@@ -613,7 +613,7 @@ class rcube_imap
else
{
$a_index = iil_C_FetchHeaderIndex($this->conn, $mailbox, "1:*", $this->sort_field, $this->skip_deleted);
-
+
if (empty($a_index))
return array();