Permalink
Browse files

MDL-13449 Reverting the previous commit, sorry - not working yet

  • Loading branch information...
1 parent 78700cc commit 3f4820fadf669d263a30cf28103d6ec88aec2183 mudrd8mz committed Jan 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -3391,7 +3391,7 @@ function forum_get_ratings_count($postid, $scale, $ratings=NULL) {
$scalecount = count($scale)-1; //this should give us the last element of the scale aka the max grade with $scale[$scalecount]
if ($count > $scale[$scalecount]) { //if the count exceeds the forum scale (i.e. max grade then set the score to the max grade
- $count = $scalecount;
+ $count = $scale[$scalecount];
}
return $scale[$count];
}

0 comments on commit 3f4820f

Please sign in to comment.