diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index ba0ee7723fc..a5541ffb4da 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -733,12 +733,12 @@ foreach ($listofreferent as $key => $value) { } $name = $langs->trans($value['name']); $qualified = $value['test']; - $margin = empty($value['margin']) ? 0 : $value['margin']; + $margin = empty($value['margin']) ? '' : $value['margin']; if ($qualified && isset($margin)) { // If this element must be included into profit calculation ($margin is 'minus' or 'add') - if ($margin == 'add') { + if ($margin === 'add') { $tooltiponprofitplus .= ' > '.$name." (+)
\n"; } - if ($margin == 'minus') { + if ($margin === 'minus') { $tooltiponprofitminus .= ' > '.$name." (-)
\n"; } }