summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-14 10:23:29 +0000
committeralecpl <alec@alec.pl>2010-10-14 10:23:29 +0000
commit0f0c17ad9ef6dc5f82e7147a16f2cab7aae657db (patch)
tree4b3b3806fff5ad856fb6a0be381780c84d539d6b /program
parent8fcc3e1ad67496496c788023daeb01631a39d915 (diff)
- improved IMAP errors handling (continue)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index b6af440b3..a26ad809c 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -542,7 +542,7 @@ class rcmail
if ($_SESSION['imap_host'] && !$this->imap->conn->connected()) {
if (!$this->imap->connect($_SESSION['imap_host'], $_SESSION['username'], $this->decrypt($_SESSION['password']), $_SESSION['imap_port'], $_SESSION['imap_ssl'])) {
if ($this->output)
- $this->output->show_message($this->imap->error_code == -1 ? 'imaperror' : 'sessionerror', 'error');
+ $this->output->show_message($this->imap->get_error_code() == -1 ? 'imaperror' : 'sessionerror', 'error');
}
else {
$this->set_imap_prop();