Merge pull request #16712 from frederic34/patch-9

fix php8 warnings
This commit is contained in:
Laurent Destailleur
2021-03-16 10:33:01 +01:00
committed by GitHub

View File

@@ -738,11 +738,11 @@ abstract class CommonObject
}
if ($this->element == 'contact') {
$contactid = $this->id;
$thirdpartyid = $object->fk_soc;
$thirdpartyid = empty($object->fk_soc) ? 0 : $object->fk_soc;
}
if ($this->element == 'user') {
$contactid = $this->contact_id;
$thirdpartyid = $object->fk_soc;
$thirdpartyid = empty($object->fk_soc) ? 0 : $object->fk_soc;
}
$out = '';