Correction formattage pourcentage, principalement utiliser dans l'affichage de la conformité
This commit is contained in:
parent
72f05a32bc
commit
b16c584cec
@ -5,6 +5,7 @@ Class Zend_View_Helper_FormatPct extends Zend_View_Helper_Abstract {
|
||||
{
|
||||
$pct = round($pct / 10, 0) * 10;
|
||||
if ($pct == 0) $pct = 10;
|
||||
return ($pct);
|
||||
if ($pct > 100) $pct = 100;
|
||||
return $pct;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user