Skip to content
Snippets Groups Projects
Commit 39ecef39 authored by Jakob Sack's avatar Jakob Sack
Browse files

Fix creation of UID in contacts

parent 0e25dd65
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,12 @@ class OC_Contacts_Addressbook{
$uri = $property->value.'.vcf';
}
}
if(is_null($uri)) $uri = self::createUID().'.vcf';
if(is_null($uri)){
$uid = self::createUID();
$uri = $uid.'.vcf';
$card->add(new Sabre_VObject_Property('UID',$uid));
$data = $card->serialize();
};
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_cards (addressbookid,fullname,carddata,uri,lastmodified) VALUES(?,?,?,?,?)' );
$result = $stmt->execute(array($id,$fn,$data,$uri,time()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment