explicitly specify fullname for newly-created vcards

SquirrelMail doesn't do it for us
This commit is contained in:
Alexey Shpakovsky 2021-05-30 00:09:43 +02:00
parent 94bf6c6fad
commit 7ed37c069b

2
abook_class.php Executable file → Normal file
View file

@ -189,7 +189,7 @@ class abook_carddav extends addressbook_backend {
*/ */
try { try {
$vcard = new VCard([ $vcard = new VCard([
'FN' => $userdata['name'], 'FN' => $userdata['firstname'] . ' ' . $userdata['lastname'],
'N' => [$userdata['lastname'], $userdata['firstname'], '', '', ''], 'N' => [$userdata['lastname'], $userdata['firstname'], '', '', ''],
'EMAIL' => $userdata['email'], 'EMAIL' => $userdata['email'],
'ORG' => $userdata['label'], 'ORG' => $userdata['label'],