summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Kolab/Cyrus.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Kolab/Cyrus.pm b/lib/Kolab/Cyrus.pm
index 99d51af..4973add 100644
--- a/lib/Kolab/Cyrus.pm
+++ b/lib/Kolab/Cyrus.pm
@@ -126,7 +126,8 @@ sub createCalendar
foreach my $mailbox (@mailboxes) {
my $u = @{$mailbox}[0];
%info = $cyrus->info($u, ('/vendor/kolab/folder-type'));
- if ($info{'/vendor/kolab/folder-type'} == 'event.default') {
+ my $key = '/mailbox/{' . $u . '}/vendor/kolab/folder-type';
+ if (exists($info{$key}) && $info{$key} eq 'event.default') {
$calendar = $u;
}
}