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
commit 897f4be033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = '';