diff --git a/htdocs/fichinter/fiche.php3 b/htdocs/fichinter/fiche.php3
index 59738d9d75a..3ec6fc51026 100644
--- a/htdocs/fichinter/fiche.php3
+++ b/htdocs/fichinter/fiche.php3
@@ -400,24 +400,49 @@ if ($id)
print '';
}
-
print '';
-
print "";
-
+ /*
+ *
+ */
print '
| Mettre à jour | '; + if ($fichinter->statut == 0) + { + print 'Mettre à jour | '; + } + else + { + print '- | '; + } + print '- | '; - print 'Génération du pdf | '; + $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.pdf"; + + if ($fichinter->statut == 0 or !file_exists($file)) + { + print 'Génération du pdf | '; + } + else + { + print '- | '; + } + print '- | '; - print 'Valider | '; + if ($fichinter->statut == 0) + { + print 'Valider | '; + } + else + { + print '- | '; + } } else