diff options
author | alecpl <alec@alec.pl> | 2011-12-16 07:19:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-12-16 07:19:33 +0000 |
commit | 2a5702c2fd37603d83ade3a25192c979d1844797 (patch) | |
tree | 0aeba2a3e64d66a13306ef0bd74c68659329ad5f /program/include/rcube_imap_cache.php | |
parent | 264476005079e890756ad9f4d57906e4a8d8bab8 (diff) |
- Remove debug code, fix "Class 'rcube_imap_result' not found" (#1488258)
Diffstat (limited to 'program/include/rcube_imap_cache.php')
-rw-r--r-- | program/include/rcube_imap_cache.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/program/include/rcube_imap_cache.php b/program/include/rcube_imap_cache.php index b3585b8c1..58336da4e 100644 --- a/program/include/rcube_imap_cache.php +++ b/program/include/rcube_imap_cache.php @@ -122,7 +122,7 @@ class rcube_imap_cache { if (empty($this->icache[$mailbox])) $this->icache[$mailbox] = array(); -console('cache::get_index'); + $sort_order = strtoupper($sort_order) == 'ASC' ? 'ASC' : 'DESC'; // Seek in internal cache @@ -173,7 +173,7 @@ console('cache::get_index'); else { $is_valid = $this->validate($mailbox, $index, $exists); } -console("valid:".$is_valid); + if ($is_valid) { $data = $index['object']; // revert the order if needed @@ -264,7 +264,7 @@ console("valid:".$is_valid); $threads = $this->imap->fetch_threads($mailbox, true); } else { - $threads = new rcube_imap_result($mailbox, ''); + $threads = new rcube_result_thread($mailbox, '* THREAD'); } $index['object'] = $threads; @@ -590,7 +590,6 @@ console("valid:".$is_valid); */ private function get_index_row($mailbox) { -console('cache::get_index_row'); // Get index from DB $sql_result = $this->db->query( "SELECT data, valid" @@ -642,7 +641,7 @@ console('cache::get_index_row'); unset($data[0]); if (empty($thread)) { - $thread = new rcube_imap_result($mailbox); + $thread = new rcube_result_thread($mailbox); } return array( |