Skip to content

Commit

Permalink
Replaced call to function assignment_get_submission with call to get_…
Browse files Browse the repository at this point in the history
…record. This should clean up duplicate rows in assignment_submissions table. -- selliott
  • Loading branch information
selliott committed Jul 25, 2003
1 parent da0c90c commit 1ddfec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/upload.php
Expand Up @@ -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");
}
Expand Down

0 comments on commit 1ddfec1

Please sign in to comment.