From 20ed3794f69fb3551622fe17830493f5feff6ba9 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 26 Aug 2011 21:56:37 +0000 Subject: Don't attempt to list (and cache) folders if not connected --- program/include/rcube_imap.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/include') diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index dba792d1e..a42376863 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -3074,6 +3074,9 @@ class rcube_imap if (isset($data['folders'])) { $a_folders = $data['folders']; } + else if (!$this->conn->connected()) { + return array(); + } else { // Server supports LIST-EXTENDED, we can use selection options $config = rcmail::get_instance()->config; -- cgit v1.2.3