]> git.mjollnir.org Git - moodle.git/commitdiff
Replaced call to function assignment_get_submission with call to get_record. This...
authorselliott <selliott>
Fri, 25 Jul 2003 14:28:26 +0000 (14:28 +0000)
committerselliott <selliott>
Fri, 25 Jul 2003 14:28:26 +0000 (14:28 +0000)
mod/assignment/upload.php

index a482131e524dd37c1ce5446440afd61d3da25779..fa0276f442397dc054a1c75239b9f83f23d0766f 100644 (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");
         }