diff --git a/classes/local/automark.php b/classes/local/automark.php index dc9e61a564..c90b7d35c8 100644 --- a/classes/local/automark.php +++ b/classes/local/automark.php @@ -164,6 +164,7 @@ public static function session($session, $course, $cm, $attendance, $returnerror } if (!empty($newlogs)) { $DB->insert_records('attendance_log', $newlogs); + $donesomething = true; } }