- Fix imap login (#1486591)

release-0.6
alecpl 15 years ago
parent 924b1a666e
commit 94a6c642cf

@ -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;
}

@ -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)) {

Loading…
Cancel
Save