diff --git a/htdocs/salaries/info.php b/htdocs/salaries/info.php
index a2f05b791a6..87855178379 100644
--- a/htdocs/salaries/info.php
+++ b/htdocs/salaries/info.php
@@ -28,7 +28,7 @@ require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/salaries/class/salary.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/salaries.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
-if (!empty($conf->project->enabled)) {
+if (isModEnabled('projet')) {
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
}
@@ -100,7 +100,7 @@ if ($action == 'setlabel' && $user->rights->salaries->write) {
* View
*/
-if (!empty($conf->project->enabled)) $formproject = new FormProjets($db);
+if (isModEnabled('projet')) $formproject = new FormProjets($db);
$title = $langs->trans('Salary')." - ".$langs->trans('Info');
$help_url = "";
@@ -139,7 +139,7 @@ if ($action != 'editlabel') {
$morehtmlref .= '
'.$langs->trans('Employee').' : '.$userstatic->getNomUrl(-1);
// Project
-if (!empty($conf->project->enabled)) {
+if (isModEnabled('projet')) {
$morehtmlref .= '
'.$langs->trans('Project').' ';
if ($user->rights->salaries->write) {
if ($action != 'classify') {