diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 80cc6b11539..0e83fbe26a1 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -956,7 +956,7 @@ foreach ($listofreferent as $key => $value)
print '
';
if (empty($value['disableamount']))
{
- if (! empty($conf->salaries->enabled)) print ''.$langs->trans("TotalHT").' : '.price($total_ht);
+ if ($tablename != 'projet_task' || ! empty($conf->salaries->enabled)) print ''.$langs->trans("TotalHT").' : '.price($total_ht);
}
print ' | ';
//if (empty($value['disableamount']) && ! in_array($tablename, array('projet_task'))) print ''.$langs->trans("TotalTTC").' : '.price($total_ttc).' | ';
@@ -964,8 +964,7 @@ foreach ($listofreferent as $key => $value)
print '';
if (empty($value['disableamount']))
{
-
- if (! empty($conf->salaries->enabled)) print $langs->trans("TotalTTC").' : '.price($total_ttc);
+ if ($tablename != 'projet_task' || ! empty($conf->salaries->enabled)) print $langs->trans("TotalTTC").' : '.price($total_ttc);
}
print ' | ';
print ' | ';