Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 3f4820fadf669d263a30cf28103d6ec88aec2183 1 parent 78700cc
mudrd8mz authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/forum/lib.php
2  mod/forum/lib.php
@@ -3391,7 +3391,7 @@ function forum_get_ratings_count($postid, $scale, $ratings=NULL) {
3391 3391 $scalecount = count($scale)-1; //this should give us the last element of the scale aka the max grade with $scale[$scalecount]
3392 3392
3393 3393 if ($count > $scale[$scalecount]) { //if the count exceeds the forum scale (i.e. max grade then set the score to the max grade
3394   - $count = $scalecount;
  3394 + $count = $scale[$scalecount];
3395 3395 }
3396 3396 return $scale[$count];
3397 3397 }

0 comments on commit 3f4820f

Please sign in to comment.
Something went wrong with that request. Please try again.