From 433a5420a2161686d62cd1cc29a860ee08587678 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 18 Oct 2012 21:25:39 +0200 Subject: [PATCH] Fix sequence increment --- plugins/libkolab/lib/kolab_format_xcal.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php index c5fdd8e3..7cef8403 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')));