fix style
This commit is contained in:
parent
cab4f35438
commit
5d9432e4d0
@ -38,19 +38,19 @@ $id = GETPOST('id', 'int');
|
|||||||
$result = restrictedArea($user, 'contact', $id, 'socpeople&societe');
|
$result = restrictedArea($user, 'contact', $id, 'socpeople&societe');
|
||||||
|
|
||||||
|
|
||||||
$result=$contact->fetch($id);
|
$result = $contact->fetch($id);
|
||||||
if ($result <= 0)
|
if ($result <= 0)
|
||||||
{
|
{
|
||||||
dol_print_error($contact->error);
|
dol_print_error($contact->error);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$physicalperson=1;
|
$physicalperson = 1;
|
||||||
|
|
||||||
$company = new Societe($db);
|
$company = new Societe($db);
|
||||||
if ($contact->socid)
|
if ($contact->socid)
|
||||||
{
|
{
|
||||||
$result=$company->fetch($contact->socid);
|
$result = $company->fetch($contact->socid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We create VCard
|
// We create VCard
|
||||||
@ -125,7 +125,7 @@ $db->close();
|
|||||||
|
|
||||||
$output = $v->getVCard();
|
$output = $v->getVCard();
|
||||||
|
|
||||||
$filename =trim(urldecode($v->getFileName())); // "Nom prenom.vcf"
|
$filename = trim(urldecode($v->getFileName())); // "Nom prenom.vcf"
|
||||||
$filenameurlencoded = dol_sanitizeFileName(urlencode($filename));
|
$filenameurlencoded = dol_sanitizeFileName(urlencode($filename));
|
||||||
//$filename = dol_sanitizeFileName($filename);
|
//$filename = dol_sanitizeFileName($filename);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user