Fix status caching in selected mailbox
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Mar 2009 03:03:58 +0000 (21:03 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Mar 2009 03:03:58 +0000 (21:03 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Base.php

index 36de4a0..cb8d882 100644 (file)
@@ -943,7 +943,7 @@ abstract class Horde_Imap_Client_Base
         }
 
         $mailbox = Horde_Imap_Client_Utf7imap::Utf8ToUtf7Imap($mailbox);
-        $curr_mbox = ($this->currentMailbox() == $mailbox);
+        $curr_mbox = ($this->_selected == $mailbox);
         $ret = array();
 
         /* Check for cached information. */
@@ -971,7 +971,7 @@ abstract class Horde_Imap_Client_Base
 
         $ret = array_merge($ret, $this->_status($mailbox, $flags));
 
-        if ($this->currentMailbox() != $mailbox) {
+        if ($this->_selected != $mailbox) {
             if (!isset($this->_temp['statuscache'])) {
                 $this->_temp['statuscache'] = array();
             }