Fix warning

This commit is contained in:
Laurent Destailleur 2024-05-17 12:58:12 +02:00
parent b07a5b4775
commit 2a3372b3dc

View File

@ -1093,7 +1093,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
}
$object->sendtoid = 0;
if ($object->fk_soc > 0) {
if (isset($object->fk_soc) && $object->fk_soc > 0) {
$object->socid = $object->fk_soc;
}
} elseif ($action == 'MEMBER_SUBSCRIPTION_DELETE') {