mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Fixed bug in the "checking for a rapid submission" code.
This commit is contained in:
parent
bb043e3843
commit
b6cc3466aa
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
||||||
// check that this is not a "rapid" second submission, caused by using the back button
|
// 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
|
// only check if a student, teachers may want to submit a set of workshop examples rapidly
|
||||||
if (isstudent($course->id)) {
|
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
|
// returns all submissions, newest on first
|
||||||
foreach ($submissions as $submission) {
|
foreach ($submissions as $submission) {
|
||||||
if ($submission->timecreated > $timenow - $CFG->maxeditingtime) {
|
if ($submission->timecreated > $timenow - $CFG->maxeditingtime) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue