Merge branch 'MDL-26461_change_rating_scale' of git://github.com/andyjdavis/moodle
[moodle.git] / rating / index.php
index 8f4cf70..ff9b121 100644 (file)
@@ -98,7 +98,7 @@ if (!$ratings) {
         //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
         //but we don't
         //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
         //but we don't
-        $rating->id = $rating->uid;
+        $rating->id = $rating->userid;
 
         echo '<tr class="ratingitemheader">';
         echo "<td>";
 
         echo '<tr class="ratingitemheader">';
         echo "<td>";