From 8fcc3e1ad67496496c788023daeb01631a39d915 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 14 Oct 2010 06:22:25 -0400 Subject: [PATCH] - Improved IMAP errors handling --- index.php | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a46c415..e87c9c9 100644 --- a/index.php +++ b/index.php @@ -118,8 +118,9 @@ $OUTPUT->redirect($redir); } else { - $OUTPUT->show_message($IMAP->error_code < -1 ? 'imaperror' : 'loginfailed', 'warning'); - $RCMAIL->plugins->exec_hook('login_failed', array('code' => $IMAP->error_code, 'host' => $auth['host'], 'user' => $auth['user'])); + $OUTPUT->show_message($IMAP->get_error_code() < -1 ? 'imaperror' : 'loginfailed', 'warning'); + $RCMAIL->plugins->exec_hook('login_failed', array( + 'code' => $IMAP->get_error_code(), 'host' => $auth['host'], 'user' => $auth['user'])); $RCMAIL->kill_session(); } } -- Gitblit v1.9.1