Fix warning

This commit is contained in:
Laurent Destailleur 2025-07-05 01:21:45 +02:00
parent e7592d6ea9
commit dff214402e
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class InterfaceEventOrganization extends DolibarrTriggers
*/
public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
{
if (empty($conf->eventorganization) || empty($conf->eventorganization->enabled)) {
if (!isModEnabled('eventorganization')) {
return 0; // Module not active, we do nothing
}

View file

@ -65,7 +65,7 @@ class InterfaceTicketEmail extends DolibarrTriggers
$ok = 0;
if (empty($conf->ticket) || !isModEnabled('ticket')) {
if (!isModEnabled('ticket')) {
return 0; // Module not active, we do nothing
}