diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-26 21:56:37 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-26 21:56:37 +0000 |
| commit | e9276f9c1450dfc7453881b0d98d4d0b18f9c535 (patch) | |
| tree | f8431b47d76428e246b15427d95a8aad39098e21 /roundcubemail/program | |
| parent | dc798be51f42a3328abe0373c766491f8baa46ef (diff) | |
Don't attempt to list (and cache) folders if not connected
git-svn-id: https://svn.roundcube.net/trunk@5137 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index dba792d1e..a42376863 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/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; |
