mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-8693 Fixed the double-equal typos (2)
This commit is contained in:
parent
a1b5dd2bd9
commit
20576b84af
@ -108,8 +108,8 @@ function setup_enrolments(&$user) {
|
||||
// already has this role in this context. If it is, we
|
||||
// skip to the next course.
|
||||
foreach($existing as $key => $role_assignment) {
|
||||
if ($role_assignment->roleid = $role->id
|
||||
&& $role_assignment->contextid = $context->id) {
|
||||
if ($role_assignment->roleid == $role->id
|
||||
&& $role_assignment->contextid == $context->id) {
|
||||
unset($existing[$key]);
|
||||
//error_log('[ENROL_DB] User is already enroled in course '.$course->idnumber);
|
||||
continue 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user