Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removal of debugging code; fixed bug in _get_student_submissions routine

  • Loading branch information...
commit d90f8c6a54a2269a383111eb6b5d4d3b19e6068d 1 parent 9380866
authored July 16, 2003

Showing 1 changed file with 2 additions and 7 deletions. Show diff stats Hide diff stats

  1. 9  mod/workshop/lib.php
9  mod/workshop/lib.php
@@ -1012,10 +1012,10 @@ function workshop_get_student_submissions($workshop, $order = "title") {
1012 1012
 		$order = "firstname, lastname";
1013 1013
 		}
1014 1014
     return get_records_sql("SELECT s.* FROM {$CFG->prefix}workshop_submissions s, {$CFG->prefix}user_students u,
1015  
-							{$CFG->prefix}user 
  1015
+							{$CFG->prefix}user a 
1016 1016
                             WHERE u.course = $workshop->course
1017 1017
                               AND s.userid = u.userid
1018  
-							  AND user.id = u.userid
  1018
+							  AND a.id = u.userid
1019 1019
                               AND s.workshopid = $workshop->id
1020 1020
 							  AND s.timecreated > 0
1021 1021
 							  ORDER BY $order");
@@ -1641,11 +1641,6 @@ function workshop_list_teacher_submissions($workshop, $user) {
1641 1641
 			// put the submissions with the lowest number of assessments first
1642 1642
 			asort($nassessments);
1643 1643
 			reset($nassessments);
1644  
-
1645  
-			echo "<PRE>";
1646  
-			print_r($nassessments);
1647  
-			
1648  
-			reset($nassessments);
1649 1644
 			$comment = "";
1650 1645
 			foreach ($nassessments as $submissionid => $n) { // actually only the first one is displayed...
1651 1646
 				$comment = '';

0 notes on commit d90f8c6

Please sign in to comment.
Something went wrong with that request. Please try again.