Avoid PHP errors
This commit is contained in:
parent
551fe7db2b
commit
41dd3a5f3b
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ class rcube_kolab
|
||||||
if (!$subscribed) {
|
if (!$subscribed) {
|
||||||
$rcmail = rcmail::get_instance();
|
$rcmail = rcmail::get_instance();
|
||||||
// try without connection first (list could be served from cache)
|
// try without connection first (list could be served from cache)
|
||||||
$subscribed = $rcmail->imap->list_mailboxes();
|
$subscribed = $rcmail->imap ? $rcmail->imap->list_mailboxes() : array();
|
||||||
|
|
||||||
// now really get the list from the IMAP server
|
// now really get the list from the IMAP server
|
||||||
if (empty($subscribed) || $subscribed == array('INBOX')) {
|
if (empty($subscribed) || $subscribed == array('INBOX')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue