Fix warning
This commit is contained in:
parent
e7592d6ea9
commit
dff214402e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue