if no separate name-components given, simply split first word off as n_given and rest as n_family

This commit is contained in:
Ralf Becker 2021-10-01 18:27:19 +02:00
parent 7e26f64e49
commit 73b8f6d9f6

View File

@ -123,6 +123,11 @@ class JsContact
case 'fullName':
$contact['n_fn'] = self::parseString($value);
// if no separate name-components given, simply split first word off as n_given and rest as n_family
if (!isset($data['name']))
{
list($contact['n_given'], $contact['n_family']) = explode(' ', $contact['n_fn'], 2);
}
break;
case 'organizations':