fix trigger when module not enabled

This commit is contained in:
Frédéric FRANCE 2017-11-14 10:20:43 +01:00 committed by GitHub
parent 11cb9c0d81
commit 7a76a3f497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
*/
public function runTrigger($action, $object, User $user, Translate $langs, Conf $conf)
{
if (!empty($conf->mymodule->enabled)) return 0; // Module not active, we do nothing
if (empty($conf->mymodule->enabled)) return 0; // Module not active, we do nothing
// Put here code you want to execute when a Dolibarr business events occurs.
// Data and type of action are stored into $object and $action