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

This commit is contained in:
mudrd8mz
2009-01-28 16:08:03 +00:00
parent 78700ccdca
commit 3f4820fadf
+1 -1
View File
@@ -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];
}