diff options
author | alecpl <alec@alec.pl> | 2010-10-14 10:22:25 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-10-14 10:22:25 +0000 |
commit | 8fcc3e1ad67496496c788023daeb01631a39d915 (patch) | |
tree | fa760b04d8d1dd42d304ddab797e968f17e5b70b /index.php | |
parent | 1c1e1e39f34ae78f09dfdf77e0dcca82c635dc4c (diff) |
- Improved IMAP errors handling
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); } } |