Skip to content
Browse files

Fixed a bug from reusing newsubmission variable

  • Loading branch information...
1 parent f10ed36 commit 02accd9c6ac5839504a2d7efb1ae27016805e95c moodler committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/assignment/submissions.php
View
1 mod/assignment/submissions.php
@@ -88,6 +88,7 @@
$submission = $submissions[$num];
// Only update entries where feedback has actually changed.
if (($vals[g] <> $submission->grade) || ($vals[c] <> addslashes($submission->comment))) {
+ unset($newsubmission);
$newsubmission->grade = $vals[g];
$newsubmission->comment = $vals[c];
$newsubmission->teacher = $USER->id;

0 comments on commit 02accd9

Please sign in to comment.
Something went wrong with that request. Please try again.