diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2012-10-18 19:25:39 (GMT) |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2012-10-18 19:25:39 (GMT) |
commit | 433a5420a2161686d62cd1cc29a860ee08587678 (patch) | |
tree | b14d79b04f982bd30e5564ca4f2bcb551b88e14c | |
parent | ff5f3544234a7e75de1de0b6a0d30cb44493f379 (diff) | |
download | roundcubemail-plugins-kolab-433a5420a2161686d62cd1cc29a860ee08587678.tar.gz |
Fix sequence increment
-rw-r--r-- | plugins/libkolab/lib/kolab_format_xcal.php | 6 |
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'))); |