From ef2868bd03d1b2c843b7123813d95571a4cda66b Mon Sep 17 00:00:00 2001 From: Karol Grochowalski Date: Wed, 1 Jul 2015 23:26:59 +0200 Subject: [PATCH] fix condition --- Twig/RatingExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;