From 41dd3a5f3ba7a0c7638d5cdf65d1e52f93fe9238 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 5 Sep 2011 23:05:52 +0200 Subject: [PATCH] Avoid PHP errors --- plugins/kolab_core/rcube_kolab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_core/rcube_kolab.php b/plugins/kolab_core/rcube_kolab.php index ef74d361..394d2184 100644 --- a/plugins/kolab_core/rcube_kolab.php +++ b/plugins/kolab_core/rcube_kolab.php @@ -201,7 +201,7 @@ class rcube_kolab if (!$subscribed) { $rcmail = rcmail::get_instance(); // 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 if (empty($subscribed) || $subscribed == array('INBOX')) {