Revert "use incremental numbers for nicks"
This reverts commit 5874e561d1
.
This commit is contained in:
parent
12b495e341
commit
9462175b03
1 changed files with 1 additions and 2 deletions
|
@ -169,13 +169,12 @@ class abook_carddav extends addressbook_backend {
|
|||
The keys of the array are the URIs of the vcards
|
||||
The values are associative arrays with keys etag (type: string) and vcard (type: VCard)
|
||||
*/
|
||||
$id=1;
|
||||
foreach($all as $uri => $one) {
|
||||
$vcard = $one['vcard'];
|
||||
$names = $vcard->N->getParts();
|
||||
// last,first,additional,prefix,suffix
|
||||
array_push($ret,array(
|
||||
'nickname' => 'id'.$id++,
|
||||
'nickname' => $uri,
|
||||
'name' => (string)$vcard->FN,
|
||||
'firstname' => (string)$names[1],
|
||||
'lastname' => (string)$names[0],
|
||||
|
|
Loading…
Reference in a new issue