Update card.php

This commit is contained in:
Laurent Destailleur 2021-10-23 19:22:41 +02:00 committed by GitHub
parent aec5e41656
commit bc353c19a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -545,11 +545,9 @@ $formcompany = new FormCompany($db);
$countrynotdefined = $langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')';
$objsoc = new Societe($db);
if ($socid > 0) {
$objsoc = new Societe($db);
$objsoc->fetch($socid);
} else {
$objsoc = 0;
}
if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {