diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 10:22:25 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 10:22:25 +0000 |
| commit | 68135346e77a7ddabe1d6264565a05e896400b93 (patch) | |
| tree | 19b408b47e7bdfbe24873105c2061cd42d970212 /roundcubemail/index.php | |
| parent | f3f1284d206c580e4aed4266567f019cde9abab7 (diff) | |
- Improved IMAP errors handling
git-svn-id: https://svn.roundcube.net/trunk@4088 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/index.php')
| -rw-r--r-- | roundcubemail/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index a46c41534..e87c9c958 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -118,8 +118,9 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { $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(); } } |
