diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-30 06:29:23 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-30 06:29:23 +0000 |
| commit | 28736d4573be9355a28c5c77893de2a7fc6068f1 (patch) | |
| tree | 10babaa70b33905abb7ff952cc56ae3ec04d2f66 /roundcubemail/program | |
| parent | 2e1bb3d2f9896229eb538666a37df11cc318b9ad (diff) | |
- Fix imap login (#1486591)
git-svn-id: https://svn.roundcube.net/trunk@3443 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 4 | ||||
| -rw-r--r-- | roundcubemail/program/include/rcube_imap_generic.php | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index b1f9132c5..26d0ef48a 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -135,6 +135,8 @@ class rcube_imap $this->set_rootdir($this->conn->rootdir); if (empty($this->delimiter)) $this->get_hierarchy_delimiter(); + + return true; } // write error log else if ($this->conn->error) { @@ -144,7 +146,7 @@ class rcube_imap 'message' => $this->conn->error), true, false); } - return $this->conn ? true : false; + return false; } diff --git a/roundcubemail/program/include/rcube_imap_generic.php b/roundcubemail/program/include/rcube_imap_generic.php index 81e296083..a199a389f 100644 --- a/roundcubemail/program/include/rcube_imap_generic.php +++ b/roundcubemail/program/include/rcube_imap_generic.php @@ -566,7 +566,7 @@ class rcube_imap_generic // check input if (empty($host)) { $this->error = "Empty host"; - $this->errornum = -1; + $this->errornum = -2; return false; } if (empty($user)) { |
