Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolNet committed Jul 1, 2015
1 parent 9dd4246 commit ef2868b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Twig/RatingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef2868b

Please sign in to comment.