Enhance vcard

This commit is contained in:
Laurent Destailleur 2023-01-15 01:31:23 +01:00
parent 35a7f3c0ff
commit e41098c527

View File

@ -31,7 +31,7 @@
*/
function encode($string)
{
return str_replace(";", "\;", (dol_quoted_printable_encode(utf8_decode($string))));
return str_replace(";", "\;", (dol_quoted_printable_encode($string)));
}
@ -488,7 +488,7 @@ class vCard
$this->setPhoneNumber($company->fax, "TYPE=WORK,FAX");
}
if ($company->address || $company->town || $company->state || $company->zip || $company->country) {
$this->setAddress("", "", $company->address, $company->town, $company->state, $company->zip, $company->country, "TYPE=WORK");
$this->setAddress("", "", $company->address, $company->town, $company->state, $company->zip, $company->country, "");
}
if ($company->email && $company->email != $object->email) {