Thomas Bruederli
2013-10-15 b6e24c6946606cd504d522451c36b6dc574fe75d
program/lib/Roundcube/rcube_imap.php
@@ -969,7 +969,7 @@
            $to    = $from + $page_size;
            // sort headers
            if (!$this->threading) {
            if (!$this->threading && !empty($a_msg_headers)) {
                $a_msg_headers = $this->conn->sortHeaders($a_msg_headers, $this->sort_field, $this->sort_order);
            }
@@ -1476,10 +1476,8 @@
            new rcube_result_index; // trigger autoloader and make these classes available for threaded context
            new rcube_result_thread;
            // connect IMAP
            if (!defined('PTHREADS_INHERIT_ALL')) {
                $this->check_connection();
            }
            // connect IMAP to have all the required classes and settings loaded
            $this->check_connection();
            $searcher = new rcube_imap_search($this->options, $this->conn);
            $results = $searcher->exec(