diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index d0a54b9ccdb..de026bf13e0 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -312,12 +312,12 @@ if ($socid > 0)
print '
';
- if ($conf->propal->enabled && defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer)
+ if ($conf->propal->enabled && $user->rights->propale->creer)
{
print '
Créer une proposition';
}
- if ($conf->commande->enabled && defined("MAIN_MODULE_COMMANDE") && MAIN_MODULE_COMMANDE && $user->rights->commande->creer)
+ if ($conf->commande->enabled && $user->rights->commande->creer)
{
print '
Créer une commande';
}
@@ -327,7 +327,7 @@ if ($socid > 0)
print '
Créer un projet';
}
- if (defined("MAIN_MODULE_FICHEINTER") && MAIN_MODULE_FICHEINTER)
+ if ($conf->fichinter->enabled)
{
print '
Intervention';
}
@@ -340,7 +340,7 @@ if ($socid > 0)
*
*/
if ($action == 'changevalue') {
- print "
";
+ print "
";
print "