Skip to content

Commit

Permalink
Fix undefined variable $user
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-tii committed Jul 29, 2024
1 parent 0b31ef8 commit 97fdd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turnitintooltwo_assignment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ public function enrol_all_students($cm) {
$members = array_keys($students);
foreach ($members as $member) {
// Don't include user if they are suspended.
$user = new turnitintooltwo_user($member, "Learner");
if (isset($suspendedusers[$user->id])) {
continue;
}
$user = new turnitintooltwo_user($member, "Learner");
$user->join_user_to_class($course->turnitin_cid);
}
return true;
Expand Down

0 comments on commit 97fdd35

Please sign in to comment.