if ($driver instanceof PEAR_Error) {
throw new Horde_Exception(sprintf(_("Connection failed: %s"), $driver->getMessage()));
}
- $vcard = $driver->tovCard($contact['contact'], '3.0');
+ $vcard = $driver->tovCard($contact['contact'], '3.0', null, true);
$vcard->setAttribute('VERSION', '3.0');
return $vcard->exportvCalendar();
if (!$filename) {
$filename = _("contact");
}
-$vcard->exportFile($filename . '.vcf', array($driver->tovCard($object)), Horde_Nls::getCharset());
+$vcard->exportFile($filename . '.vcf', array($driver->tovCard($object, '2.1', null, true)), Horde_Nls::getCharset());