diff options
author | alecpl <alec@alec.pl> | 2010-12-07 13:03:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-12-07 13:03:33 +0000 |
commit | dd83549dda110ff9980b1bd496c3b65557985b24 (patch) | |
tree | 30d8723aa4d86d6685a66f722b24d20b58cb73b2 | |
parent | d7e83d34ddad6d4285a1ae18362642149b18aaa2 (diff) |
- Fix closeConnection() call in rcube_imap::reconnect()
-rw-r--r-- | program/include/rcube_imap.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 990e1a05d..f0d11194c 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -193,11 +193,11 @@ class rcube_imap */ function reconnect() { - $this->closeConnection(); - $this->connect($this->host, $this->user, $this->pass, $this->port, $this->ssl); + $this->conn->closeConnection(); + $connected = $this->connect($this->host, $this->user, $this->pass, $this->port, $this->ssl); // issue SELECT command to restore connection status - if ($this->mailbox) + if ($connected && strlen($this->mailbox)) $this->conn->select($this->mailbox); } |