mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Replaced call to function assignment_get_submission with call to get_record. This should clean up duplicate rows in assignment_submissions table. -- selliott
This commit is contained in:
parent
da0c90c313
commit
1ddfec1175
@ -33,7 +33,7 @@
|
|||||||
<A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload",
|
<A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload",
|
||||||
"", "", true);
|
"", "", true);
|
||||||
|
|
||||||
if ($submission = assignment_get_submission($assignment, $USER)) {
|
if ($submission = get_record("assignment_submissions", "assignment", $assignment->id, "userid", $USER->id)) {
|
||||||
if ($submission->grade and !$assignment->resubmit) {
|
if ($submission->grade and !$assignment->resubmit) {
|
||||||
error("You've already been graded - there's no point in uploading anything");
|
error("You've already been graded - there's no point in uploading anything");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user