fix: error on the creation of a new member

This commit is contained in:
Nicolas Domenech 2021-10-22 16:34:51 +02:00
parent d54423990d
commit d7dd54549a

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);
}