From 1ddfec117534becc5ca865feb1d58d7358cfa01f Mon Sep 17 00:00:00 2001 From: selliott Date: Fri, 25 Jul 2003 14:28:26 +0000 Subject: [PATCH] Replaced call to function assignment_get_submission with call to get_record. This should clean up duplicate rows in assignment_submissions table. -- selliott --- mod/assignment/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5