@@ -27,7 +27,8 @@ class NoteMoyenne {
$nb = 0;
foreach ($commentaires as $commentaire) {
- $nb ++;
+ if ($commentaire->getNote() > 0 && $commentaire->getNote() != null)
+ $nb++;
$total += $commentaire->getNote();
}