diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 59359ec2b3b..66ebc3733be 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -857,7 +857,8 @@ if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->ficheint $form = new Form($db); $formfile = new FormFile($db); -$formcontract = new FormContract($db); +if ($conf->contrat->enabled) + $formcontract = new FormContract($db); llxHeader('',$langs->trans("Fichinter")); @@ -982,7 +983,7 @@ if ($action == 'create') $numprojet=$formproject->select_projects($soc->id,GETPOST('projectid','int'),'projectid'); if ($numprojet==0) { - print '   '.$langs->trans("AddProject").''; + print '   '.$langs->trans("AddProject").''; } print ''; }