}
else {
$colname = get_string('user');
- $sql = 'SELECT o.*, u.firstname, u.lastname, u.id as uid
+ $sql = 'SELECT o.*, u.firstname, u.lastname
FROM {quiz_overrides} o JOIN {user} u
ON o.userid = u.id
WHERE o.quiz = ?
//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>";
$sortclause = "ORDER BY $options->sort";
}
- $userfields = user_picture::fields('u', null, 'uid');
+ $userfields = user_picture::fields('u', null, 'userid');
$sql = "SELECT r.id, r.rating, r.itemid, r.userid, r.timemodified, $userfields
FROM {rating} r
LEFT JOIN {user} u ON r.userid = u.id
defined('MOODLE_INTERNAL') || die();
-$version = 2011021800.00; // YYYYMMDD = date of the last version bump
+$version = 2011022100.00; // YYYYMMDD = date of the last version bump
// XX = daily increments
-$release = '2.0.1+ (Build: 20110218)'; // Human-friendly version name
+$release = '2.0.2 (Build: 20110221)'; // Human-friendly version name