summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-07 13:03:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-07 13:03:33 +0000
commitdd49527a59bb156215458c38a0c538201dab0669 (patch)
tree406851993ad7ae75c58c7a375910f4c3d0102522 /roundcubemail/program/include
parentc80c4ff1baeb46b4e92ab629846fcc49f95fb3fa (diff)
- Fix closeConnection() call in rcube_imap::reconnect()
git-svn-id: https://svn.roundcube.net/trunk@4312 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_imap.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index 990e1a05d..f0d11194c 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/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);
}