Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored July 25, 2003

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/assignment/upload.php
2  mod/assignment/upload.php
@@ -33,7 +33,7 @@
33 33
                   <A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload", 
34 34
                   "", "", true);
35 35
 
36  
-    if ($submission = assignment_get_submission($assignment, $USER)) {
  36
+    if ($submission = get_record("assignment_submissions", "assignment", $assignment->id, "userid", $USER->id)) {
37 37
         if ($submission->grade and !$assignment->resubmit) {
38 38
             error("You've already been graded - there's no point in uploading anything");
39 39
         }

0 notes on commit 1ddfec1

Please sign in to comment.
Something went wrong with that request. Please try again.