diff options
author | thomascube <thomas@roundcube.net> | 2012-03-16 18:04:51 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-03-16 18:04:51 +0000 |
commit | f302fb9337fa35d413e3292da095a338433f50e2 (patch) | |
tree | f4c27c6725fa470b19d3c5b7333f3d28c96ec78f /program/include | |
parent | 04b6d6ff4f4d565dc3cccf79fc31c256fbb379f0 (diff) |
Don't set variable which will be used later on with wrong data
Diffstat (limited to 'program/include')
-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']; } |