Skip to content

Commit

Permalink
MDL-8693 Fixed the double-equal typos (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Mar 1, 2007
1 parent a836952 commit b7e97fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/database/enrol.php
Expand Up @@ -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;
Expand Down

0 comments on commit b7e97fc

Please sign in to comment.