Don't set variable which will be used later on with wrong data

pull/1/head
thomascube 12 years ago
parent 04b6d6ff4f
commit f302fb9337

@ -353,8 +353,9 @@ class rcube_imap_cache
function get_message($mailbox, $uid, $update = true, $cache = true) function get_message($mailbox, $uid, $update = true, $cache = true)
{ {
// Check internal cache // Check internal cache
if (($message = $this->icache['message']) if ($this->icache['message']
&& $message['mailbox'] == $mailbox && $message['object']->uid == $uid && $this->icache['message']['mailbox'] == $mailbox
&& $this->icache['message']['object']->uid == $uid
) { ) {
return $this->icache['message']['object']; return $this->icache['message']['object'];
} }

Loading…
Cancel
Save