diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-06-20 18:39:54 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-06-20 18:39:54 +0200 |
commit | 6bb44a644ad9a256f2cd154cfbdb7bdfede3fa6a (patch) | |
tree | b753a193d3cf268f41fa9cd95e6d365eae54c164 /program/include/rcube_imap.php | |
parent | 1fe450b5aa830b44fa093d87f0fb71965a9f36cb (diff) |
Initialize rcube instance (with options); no caches without a valid user_id
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 00a4158fe..57b85c34e 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -3742,9 +3742,9 @@ class rcube_imap extends rcube_storage { if ($this->messages_caching && !$this->mcache) { $rcube = rcube::get_instance(); - if ($dbh = $rcube->get_dbh()) { + if (($dbh = $rcube->get_dbh()) && ($userid = $rcube->get_user_id())) { $this->mcache = new rcube_imap_cache( - $dbh, $this, $rcube->get_user_id(), $this->options['skip_deleted']); + $dbh, $this, $userid, $this->options['skip_deleted']); } } |