From: rkingdon Date: Wed, 16 Jul 2003 19:47:24 +0000 (+0000) Subject: Removal of debugging code; fixed bug in _get_student_submissions routine X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d90f8c6a54a2269a383111eb6b5d4d3b19e6068d;p=moodle.git Removal of debugging code; fixed bug in _get_student_submissions routine --- diff --git a/mod/workshop/lib.php b/mod/workshop/lib.php index 550a0c7d90..99e8b4ec1d 100644 --- a/mod/workshop/lib.php +++ b/mod/workshop/lib.php @@ -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 a 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 "
";
-			print_r($nassessments);
-			
 			reset($nassessments);
 			$comment = "";
 			foreach ($nassessments as $submissionid => $n) { // actually only the first one is displayed...