]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15877: Lesson query breaks dml rule about reusing named params (sorry missed...
authorsam_marshall <sam_marshall>
Tue, 29 Jul 2008 16:44:09 +0000 (16:44 +0000)
committersam_marshall <sam_marshall>
Tue, 29 Jul 2008 16:44:09 +0000 (16:44 +0000)
mod/lesson/lib.php

index c9c11fcf7680fd32b3d54841fbe412f8733df208..b1bbc30e79901321edec015198768eefa003f936 100644 (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