From fc67251839ae210a138cafc68fdb7f5aae95a151 Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 17 Oct 2007 20:44:10 +0000 Subject: Show appropriate warning on connection error --- program/include/rcube_imap.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'program') 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); -- cgit v1.2.3