From b6cc3466aa1f0b3e6d6fb44a64a9a0bb2a0357a8 Mon Sep 17 00:00:00 2001 From: rkingdon Date: Mon, 15 Nov 2004 18:18:43 +0000 Subject: [PATCH] Fixed bug in the "checking for a rapid submission" code. --- mod/workshop/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5