For assignments without a timemodified stamp, add one when graded

This commit is contained in:
moodler 2003-01-14 03:01:10 +00:00
parent dfcfb72876
commit c078c29bb2

View File

@ -96,6 +96,9 @@
$newsubmission->timemarked = $timenow;
$newsubmission->mailed = 0; // Make sure mail goes out (again, even)
$newsubmission->id = $num;
if (empty($submission->timemodified)) { // eg for offline assignments
$newsubmission->timemodified = $timenow;
}
if (! update_record("assignment_submissions", $newsubmission)) {
notify(get_string("failedupdatefeedback", "assignment", $submission->userid));
} else {