summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-08-26 21:56:37 +0000
committerthomascube <thomas@roundcube.net>2011-08-26 21:56:37 +0000
commit20ed3794f69fb3551622fe17830493f5feff6ba9 (patch)
treec91025d0f40a824443e77877ebe5163968b214b6 /program/include/rcube_imap.php
parenta98ee35134d7cbe112c6074d48a2a22e506ef2f3 (diff)
Don't attempt to list (and cache) folders if not connected
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 3 insertions, 0 deletions
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;