From: selliott Date: Fri, 25 Jul 2003 14:28:26 +0000 (+0000) Subject: Replaced call to function assignment_get_submission with call to get_record. This... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1ddfec117534becc5ca865feb1d58d7358cfa01f;p=moodle.git Replaced call to function assignment_get_submission with call to get_record. This should clean up duplicate rows in assignment_submissions table. -- selliott --- diff --git a/mod/assignment/upload.php b/mod/assignment/upload.php index a482131e52..fa0276f442 100644 --- a/mod/assignment/upload.php +++ b/mod/assignment/upload.php @@ -33,7 +33,7 @@ id\">$assignment->name -> $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"); }