mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Please don't tell me I did that :-P
This commit is contained in:
parent
393578a609
commit
7317b67272
@ -227,7 +227,7 @@ class OC_Contacts_VCard{
|
||||
$vcard->setString('FN', $fn);
|
||||
OCP\Util::writeLog('contacts','OC_Contacts_VCard::updateValuesFromAdd. Added missing \'FN\' field: '.$fn,OCP\Util::DEBUG);
|
||||
}
|
||||
if(!$n || $n = ';;;;'){ // Fix missing 'N' field. Ugly hack ahead ;-)
|
||||
if(!$n || $n == ';;;;'){ // Fix missing 'N' field. Ugly hack ahead ;-)
|
||||
$slice = array_reverse(array_slice(explode(' ', $fn), 0, 2)); // Take 2 first name parts of 'FN' and reverse.
|
||||
if(count($slice) < 2) { // If not enought, add one more...
|
||||
$slice[] = "";
|
||||
|
Loading…
Reference in New Issue
Block a user