diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-16 18:04:51 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-16 18:04:51 +0000 |
| commit | 8d8d6f33c06c26984d427ae406c075bdddc8178c (patch) | |
| tree | 1d9c27c9117e4f7641ddf25540398d47ef5a9677 /roundcubemail/program/include/rcube_imap_cache.php | |
| parent | a78e56515c8c22cf977dcfe9337b1854c83fd635 (diff) | |
Don't set variable which will be used later on with wrong data
git-svn-id: https://svn.roundcube.net/trunk@6020 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap_cache.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap_cache.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap_cache.php b/roundcubemail/program/include/rcube_imap_cache.php index 655979de6..ee53dc25c 100644 --- a/roundcubemail/program/include/rcube_imap_cache.php +++ b/roundcubemail/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']; } |
