Merge pull request #19114 from nicolas-eoxia/fix_creation_new_member

fix: error on the creation of a new member #19112
This commit is contained in:
Laurent Destailleur 2021-10-22 18:59:24 +02:00 committed by GitHub
commit bf098330fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -935,8 +935,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$object->country = $tmparray['label'];
}
$soc = new Societe($db);
if (!empty($socid)) {
$soc = new Societe($db);
if ($socid > 0) {
$soc->fetch($socid);
}