summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/calendar/drivers/kolab/kolab_calendar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_calendar.php b/plugins/calendar/drivers/kolab/kolab_calendar.php
index d10126a..9e3ecdf 100644
--- a/plugins/calendar/drivers/kolab/kolab_calendar.php
+++ b/plugins/calendar/drivers/kolab/kolab_calendar.php
@@ -76,7 +76,7 @@ class kolab_calendar extends kolab_storage_folder_api
// fetch objects from the given IMAP folder
$this->storage = kolab_storage::get_folder($this->name);
- $this->ready = $this->storage && !PEAR::isError($this->storage) && $this->storage->type !== null;
+ $this->ready = $this->storage && $this->storage->valid;
// Set readonly and alarms flags according to folder permissions
if ($this->ready) {