]> git.mjollnir.org Git - moodle.git/commitdiff
Removal of debugging code; fixed bug in _get_student_submissions routine
authorrkingdon <rkingdon>
Wed, 16 Jul 2003 19:47:24 +0000 (19:47 +0000)
committerrkingdon <rkingdon>
Wed, 16 Jul 2003 19:47:24 +0000 (19:47 +0000)
mod/workshop/lib.php

index 550a0c7d907f7301970a80be1d1239f249b899a7..99e8b4ec1db54d8e74ca89ce533b1fe73e78666e 100644 (file)
@@ -1012,10 +1012,10 @@ function workshop_get_student_submissions($workshop, $order = "title") {
                $order = "firstname, lastname";
                }
     return get_records_sql("SELECT s.* FROM {$CFG->prefix}workshop_submissions s, {$CFG->prefix}user_students u,
-                                                       {$CFG->prefix}user 
+                                                       {$CFG->prefix}user 
                             WHERE u.course = $workshop->course
                               AND s.userid = u.userid
-                                                         AND user.id = u.userid
+                                                         AND a.id = u.userid
                               AND s.workshopid = $workshop->id
                                                          AND s.timecreated > 0
                                                          ORDER BY $order");
@@ -1640,11 +1640,6 @@ function workshop_list_teacher_submissions($workshop, $user) {
                                }
                        // put the submissions with the lowest number of assessments first
                        asort($nassessments);
-                       reset($nassessments);
-
-                       echo "<PRE>";
-                       print_r($nassessments);
-                       
                        reset($nassessments);
                        $comment = "";
                        foreach ($nassessments as $submissionid => $n) { // actually only the first one is displayed...