mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix creation of UID in contacts
This commit is contained in:
parent
0e25dd65c0
commit
39ecef39cd
1 changed files with 6 additions and 1 deletions
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Reference in a new issue