use isModEnabled

This commit is contained in:
Frédéric FRANCE 2023-04-18 20:37:07 +02:00
parent 7760ba86da
commit 40c5be6f7f

View File

@ -211,7 +211,7 @@ if ($object->id > 0) {
// Thirdparty
$morehtmlref.='<br>'.$langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '');
// Project
if (!empty($conf->project->enabled)) {
if (isModEnabled('project')) {
$langs->load("projects");
$morehtmlref.='<br>'.$langs->trans('Project') . ' ';
if ($permissiontoadd) {