From 7ea292410644af4b6eaa772a8f71855783ade0ae Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 18 Oct 2012 12:13:56 +0200 Subject: Don't display session error message if imap connection failed --- program/include/rcmail.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index ee144faca..3b6c6cf15 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -2112,8 +2112,7 @@ class rcmail extends rcube if (!$storage->connect($host, $user, $pass, $port, $ssl)) { if (is_object($this->output)) { - $error = $storage->get_error_code() == -1 ? 'storageerror' : 'sessionerror'; - $this->output->show_message($error, 'error'); + $this->output->show_message('storageerror', 'error'); } } else { -- cgit v1.2.3