summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/libkolab/lib/kolab_format_xcal.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php
index c5fdd8e..7cef840 100644
--- a/plugins/libkolab/lib/kolab_format_xcal.php
+++ b/plugins/libkolab/lib/kolab_format_xcal.php
@@ -221,10 +221,10 @@ abstract class kolab_format_xcal extends kolab_format
$this->obj->setCreated(self::get_datetime($object['created']));
}
- if (!empty($object['uid'])) {
+ if (!empty($object['uid']))
$this->obj->setUid($object['uid']);
- $object['sequence'] = -1;
- }
+ else
+ $object['sequence'] = -1; // make the first sequence increment being 0
$object['changed'] = new DateTime('now', self::$timezone);
$this->obj->setLastModified(self::get_datetime($object['changed'], new DateTimeZone('UTC')));