diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php
index 9303c6eaf31..dff874725de 100644
--- a/htdocs/fourn/commande/card.php
+++ b/htdocs/fourn/commande/card.php
@@ -1926,7 +1926,7 @@ if ($action == 'create') {
$action = '';
} else {
$text = $langs->trans('ConfirmValidateOrder', $newref);
- if (!empty($conf->notification->enabled)) {
+ if (isModEnabled('notification')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);
$text .= '
';
@@ -1963,7 +1963,7 @@ if ($action == 'create') {
);
}
$text = $langs->trans("ConfirmApproveThisOrder", $object->ref);
- if (!empty($conf->notification->enabled)) {
+ if (isModEnabled('notification')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);
$text .= '
';
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 4528c0cb0c2..0f02adf0a4e 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2704,7 +2704,7 @@ if ($action == 'create') {
$action = '';
} else {
$text = $langs->trans('ConfirmValidateBill', $numref);
- /*if (!empty($conf->notification->enabled))
+ /*if (isModEnabled('notification'))
{
require_once DOL_DOCUMENT_ROOT .'/core/class/notify.class.php';
$notify=new Notify($db);
diff --git a/htdocs/hrm/establishment/info.php b/htdocs/hrm/establishment/info.php
index bae5f28376d..d5f7f8a6b36 100644
--- a/htdocs/hrm/establishment/info.php
+++ b/htdocs/hrm/establishment/info.php
@@ -128,7 +128,7 @@ if ($object->id > 0) {
$help_url = '';
llxHeader('', $title, $help_url);
- if (!empty($conf->notification->enabled)) {
+ if (isModEnabled('notification')) {
$langs->load("mails");
}
$head = establishment_prepare_head($object);
diff --git a/htdocs/hrm/evaluation_agenda.php b/htdocs/hrm/evaluation_agenda.php
index ed9e9ecc196..a30a3f98f5a 100644
--- a/htdocs/hrm/evaluation_agenda.php
+++ b/htdocs/hrm/evaluation_agenda.php
@@ -138,7 +138,7 @@ if ($object->id > 0) {
$help_url = 'EN:Module_Agenda_En';
llxHeader('', $title, $help_url);
- if (!empty($conf->notification->enabled)) {
+ if (isModEnabled('notification')) {
$langs->load("mails");
}
$head = evaluationPrepareHead($object);
diff --git a/htdocs/hrm/evaluation_card.php b/htdocs/hrm/evaluation_card.php
index 9c73d8c99b6..58c0d1e6b8d 100644
--- a/htdocs/hrm/evaluation_card.php
+++ b/htdocs/hrm/evaluation_card.php
@@ -353,7 +353,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
$text = $langs->trans('ConfirmValidateEvaluation', $numref);
- if (!empty($conf->notification->enabled)) {
+ if (isModEnabled('notification')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
$notify = new Notify($db);
$text .= '
';