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:
selliott 2003-07-25 14:28:26 +00:00
parent da0c90c313
commit 1ddfec1175

View File

@ -33,7 +33,7 @@
<A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload",
"", "", 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) {
error("You've already been graded - there's no point in uploading anything");
}