From: rkingdon Date: Mon, 15 Nov 2004 18:18:43 +0000 (+0000) Subject: Fixed bug in the "checking for a rapid submission" code. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b6cc3466aa1f0b3e6d6fb44a64a9a0bb2a0357a8;p=moodle.git Fixed bug in the "checking for a rapid submission" code. --- diff --git a/mod/workshop/upload.php b/mod/workshop/upload.php index 118a342a97..c89b837f59 100644 --- a/mod/workshop/upload.php +++ b/mod/workshop/upload.php @@ -39,7 +39,7 @@ // check that this is not a "rapid" second submission, caused by using the back button // only check if a student, teachers may want to submit a set of workshop examples rapidly if (isstudent($course->id)) { - if ($submissions = workshop_get_user_submissions($exercise, $USER)) { + if ($submissions = workshop_get_user_submissions($workshop, $USER)) { // returns all submissions, newest on first foreach ($submissions as $submission) { if ($submission->timecreated > $timenow - $CFG->maxeditingtime) {