Skip to content

Commit

Permalink
Merge branch 'MDL-26461_change_rating_scale' of git://github.com/andy…
Browse files Browse the repository at this point in the history
…jdavis/moodle
  • Loading branch information
stronk7 committed Feb 22, 2011
2 parents cc31313 + aafa4f3 commit 29336fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rating/index.php
Expand Up @@ -92,7 +92,8 @@
echo "<th class=\"header\" scope=\"col\"><a href=\"index.php?$sortargs&amp;sort=time\">$strtime</a></th>";
echo "</tr>";

$maxrating = count($scalemenu);
//if the scale was changed after ratings were submitted some ratings may have a value above the current maximum
$maxrating = count($scalemenu) - 1;
foreach ($ratings as $rating) {
//Undo the aliasing of the user id column from user_picture::fields()
//we could clone the rating object or preserve the rating id if we needed it again
Expand Down

0 comments on commit 29336fb

Please sign in to comment.