diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-03-07 21:29:23 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-03-07 21:46:42 +0100 |
commit | d8cfe77ba5348d29a9e2b046e2c7efc1dd4758cb (patch) | |
tree | 6c4945341381a37b8d2ffb086415664104ebeb86 /apps/calendar | |
parent | 95995482034a607085d2cdc8000e5ea437c0cb1f (diff) | |
download | nextcloud-server-d8cfe77ba5348d29a9e2b046e2c7efc1dd4758cb.tar.gz nextcloud-server-d8cfe77ba5348d29a9e2b046e2c7efc1dd4758cb.zip |
Contacts: small fixes and cleanups
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/lib/object.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index b84e575bc83..e0c0e83d5d0 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -96,8 +96,7 @@ class OC_Calendar_Object{ list($type,$startdate,$enddate,$summary,$repeating,$uid) = self::extractData($object); if(is_null($uid)){ - $uid = self::createUID(); - $object->add('UID',$uid); + $object->setUID(); $data = $object->serialize(); } @@ -209,14 +208,6 @@ class OC_Calendar_Object{ } /** - * @brief Creates a UID - * @return string - */ - protected static function createUID(){ - return substr(md5(rand().time()),0,10); - } - - /** * @brief Extracts data from a vObject-Object * @param Sabre_VObject $object * @return array |