Permalink
Browse files

Fixed bug in the "checking for a rapid submission" code.

  • Loading branch information...
1 parent bb043e3 commit b6cc3466aa1f0b3e6d6fb44a64a9a0bb2a0357a8 rkingdon committed Nov 15, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/workshop/upload.php
View
@@ -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) {

0 comments on commit b6cc346

Please sign in to comment.