summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-10-17 20:44:10 +0000
committerthomascube <thomas@roundcube.net>2007-10-17 20:44:10 +0000
commitfc67251839ae210a138cafc68fdb7f5aae95a151 (patch)
tree4532f4b973ae3e948ba719b0839f2a994873231d /program
parentb119e24154315cbd21ae2609ea84ad0346598543 (diff)
Show appropriate warning on connection error
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index be7f44f4e..8bcce8a94 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -65,6 +65,7 @@ class rcube_imap
var $search_string = '';
var $search_charset = '';
var $debug_level = 1;
+ var $error_code = 0;
/**
@@ -131,6 +132,7 @@ class rcube_imap
// write error log
else if (!$this->conn && $GLOBALS['iil_error'])
{
+ $this->error_code = $GLOBALS['iil_errornum'];
raise_error(array('code' => 403,
'type' => 'imap',
'message' => $GLOBALS['iil_error']), TRUE, FALSE);