Merge pull request #20341 from daraelmin/patch-8

Fix Warning in htdocs/adherents/card.php
This commit is contained in:
Laurent Destailleur 2022-03-15 19:36:54 +01:00 committed by GitHub
commit f13e7bb03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -789,8 +789,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);
if (!($soc->id > 0)) {