Correction formattage pourcentage, principalement utiliser dans l'affichage de la conformité

This commit is contained in:
Michael RICOIS 2012-03-02 11:40:14 +00:00
parent 72f05a32bc
commit b16c584cec

View File

@ -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;
}
}