From: nicolasconnault Date: Thu, 1 Mar 2007 07:34:51 +0000 (+0000) Subject: MDL-8693 Fixed the double-equal typos (2) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=20576b84af63425ce496738e7384aa0b9a6a4000;p=moodle.git MDL-8693 Fixed the double-equal typos (2) --- diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php index b3d017da1e..18d729df91 100644 --- a/enrol/database/enrol.php +++ b/enrol/database/enrol.php @@ -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;