diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index f474b1b05f8..d54d2dd02ff 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -39,7 +39,7 @@ // Protection if (empty($objectclass) || empty($uploaddir)) { - dol_print_error(null, 'include of actions_massactions.inc.php is done but var $massaction or $objectclass or $uploaddir was not defined'); + dol_print_error(null, 'include of actions_massactions.inc.php is done but var $objectclass or $uploaddir was not defined'); exit; } diff --git a/htdocs/modulebuilder/template/myobject_list.php b/htdocs/modulebuilder/template/myobject_list.php index 11fafd59ab5..555e01d7896 100644 --- a/htdocs/modulebuilder/template/myobject_list.php +++ b/htdocs/modulebuilder/template/myobject_list.php @@ -107,6 +107,7 @@ if (! $sortfield) $sortfield="t.".key($object->fields); // Set here default se if (! $sortorder) $sortorder="ASC"; // Security check +if (empty($conf->mymodule->enabled)) accessforbidden('Module not enabled'); $socid=0; if ($user->societe_id > 0) // Protection if external user {