]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug in the "checking for a rapid submission" code.
authorrkingdon <rkingdon>
Mon, 15 Nov 2004 18:18:43 +0000 (18:18 +0000)
committerrkingdon <rkingdon>
Mon, 15 Nov 2004 18:18:43 +0000 (18:18 +0000)
mod/workshop/upload.php

index 118a342a97c766de640afca6f88d355aad1058d0..c89b837f591b4a9b364eb965c6ecc3e1ac36af6f 100644 (file)
@@ -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) {