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

This commit is contained in:
rkingdon 2004-11-15 18:18:43 +00:00
parent bb043e3843
commit b6cc3466aa

View 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) {