diff --git a/Twig/RatingExtension.php b/Twig/RatingExtension.php index 12dcab9..0ca6609 100644 --- a/Twig/RatingExtension.php +++ b/Twig/RatingExtension.php @@ -38,7 +38,7 @@ public function showRating($rating) for($count = 0; $count < $this->maxRate; $count++) { - if ($rating < $count) { + if ($rating <= $count) { $output = $output . $this->starEmpty; } else { $output = $output . $this->starFull;