diff --git a/mod/forum/lib.php b/mod/forum/lib.php index dbe3afef11f..07d0a13e2d6 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -3557,13 +3557,7 @@ function forum_get_ratings_count($postid, $scale, $ratings=NULL) { } } - $count = count($ratings); - $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 = $scale[$scalecount]; - } - return $scale[$count]; + return count($ratings); } /**