[Svn] r2918 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Fri Sep 4 15:00:36 CEST 2009


Author: alec
Date: 2009-09-04 08:00:36 -0500 (Fri, 04 Sep 2009)
New Revision: 2918

Modified:
   trunk/roundcubemail/program/include/rcube_imap.php
Log:
- remove test code


Modified: trunk/roundcubemail/program/include/rcube_imap.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_imap.php	2009-09-04 11:16:36 UTC (rev 2917)
+++ trunk/roundcubemail/program/include/rcube_imap.php	2009-09-04 13:00:36 UTC (rev 2918)
@@ -598,7 +598,7 @@
     // 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 @@
     else
       {
       $a_index = iil_C_FetchHeaderIndex($this->conn, $mailbox, "1:*", $this->sort_field, $this->skip_deleted);
-    
+
       if (empty($a_index))
         return array();
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list