diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_imap_cache.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_imap_cache.php b/program/include/rcube_imap_cache.php index 655979de6..ee53dc25c 100644 --- a/program/include/rcube_imap_cache.php +++ b/program/include/rcube_imap_cache.php @@ -353,8 +353,9 @@ class rcube_imap_cache function get_message($mailbox, $uid, $update = true, $cache = true) { // Check internal cache - if (($message = $this->icache['message']) - && $message['mailbox'] == $mailbox && $message['object']->uid == $uid + if ($this->icache['message'] + && $this->icache['message']['mailbox'] == $mailbox + && $this->icache['message']['object']->uid == $uid ) { return $this->icache['message']['object']; } |