Small tweak to specify specifically number of files in an update

This commit is contained in:
moodler
2002-11-12 04:59:28 +00:00
parent b68de3e4d9
commit c75f5b4348
+1
View File
@@ -51,6 +51,7 @@
assignment_delete_user_files($assignment, $USER, $newfile_name);
if ($submission) {
$submission->timemodified = time();
$submission->numfiles = 1;
if (update_record("assignment_submissions", $submission)) {
print_heading(get_string("uploadsuccess", "assignment", $newfile_name) );
} else {