Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- re-fix r2095

  • Loading branch information...
commit 7342d7ef8c277c32bb161eeb585d98099f2b04fe 1 parent b2265ae
@alecpl alecpl authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  index.php
  2. +1 −1  program/lib/imap.inc
View
2  index.php
@@ -100,7 +100,7 @@
$OUTPUT->redirect();
}
else {
- $OUTPUT->show_message($IMAP->error_code == 0 ? 'loginfailed' : 'imaperror', 'warning');
+ $OUTPUT->show_message($IMAP->error_code < -1 ? 'imaperror' : 'loginfailed', 'warning');
$RCMAIL->kill_session();
}
}
View
2  program/lib/imap.inc
@@ -586,7 +586,7 @@ function iil_Connect($host, $user, $password) {
$conn->fp = fsockopen($host, $ICL_PORT, $errno, $errstr, 10);
if (!$conn->fp) {
$iil_error = "Could not connect to $host at port $ICL_PORT: $errstr";
- $iil_errornum = -1;
+ $iil_errornum = -2;
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.