mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-15877: Lesson query breaks dml rule about reusing named params (sorry missed a bit)
This commit is contained in:
parent
b920f6e84a
commit
96fa52a47c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user