MDL-15877: Lesson query breaks dml rule about reusing named params (sorry missed a bit)

This commit is contained in:
sam_marshall 2008-07-29 16:44:09 +00:00
parent b920f6e84a
commit 96fa52a47c

View File

@ -368,7 +368,8 @@ function lesson_get_user_grades($lesson, $userid=0) {
$user
GROUP BY u.id";
}
unset($params['lessonid2']);
unset($params['userid2']);
} else {
// use only first attempts (with lowest id in lesson_grades table)
$firstonly = "SELECT uu.id AS userid, MIN(gg.id) AS firstcompleted