Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced call to function assignment_get_submission with call to get_…

…record. This should clean up duplicate rows in assignment_submissions table. -- selliott
  • Loading branch information...
commit 1ddfec117534becc5ca865feb1d58d7358cfa01f 1 parent da0c90c
selliott authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/upload.php
View
2  mod/assignment/upload.php
@@ -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");
}
Please sign in to comment.
Something went wrong with that request. Please try again.