]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8693 Fixed the double-equal typos (2)
authornicolasconnault <nicolasconnault>
Thu, 1 Mar 2007 07:34:51 +0000 (07:34 +0000)
committernicolasconnault <nicolasconnault>
Thu, 1 Mar 2007 07:34:51 +0000 (07:34 +0000)
enrol/database/enrol.php

index b3d017da1e4e2a429a76b9a29b223b4fcb0ff737..18d729df91061d3b1ff97e2b412701c80fad5dc3 100644 (file)
@@ -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;