summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-02-24 11:10:56 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-02-24 11:10:56 (GMT)
commit6249f2e4259a7f8aba7ef8a8f9bd7ddab7169d20 (patch)
tree4962a5f2dacbca98b570cea086685ba713868c75
parentb847691f57634118b9df9ccb0768e43187833506 (diff)
downloadkolab-syncroton-6249f2e4259a7f8aba7ef8a8f9bd7ddab7169d20.tar.gz
Fix bug in recurrence exceptions handling (Bug #1656)
-rw-r--r--lib/kolab_sync_data_calendar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_sync_data_calendar.php b/lib/kolab_sync_data_calendar.php
index a0c828b..f93a91d 100644
--- a/lib/kolab_sync_data_calendar.php
+++ b/lib/kolab_sync_data_calendar.php
@@ -467,7 +467,9 @@ class kolab_sync_data_calendar extends kolab_sync_data implements Syncroton_Data
$event['recurrence'] = $this->recurrence_to_kolab($data->recurrence, $timezone);
// recurrence exceptions
- $event['recurrence']['EXDATE'] = $this->exceptions_to_kolab($data->exceptions, $timezone);
+ if ($exdate = $this->exceptions_to_kolab($data->exceptions, $timezone)) {
+ $event['recurrence']['EXDATE'] = $exdate;
+ }
return $event;
}