From: nicolasconnault Date: Wed, 21 Mar 2007 06:20:02 +0000 (+0000) Subject: MDL-8963 : The code was using $group->password instead of $group->enrolmentkey. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4876a566a48fc5925e769f4154b873f5d8324e89;p=moodle.git MDL-8963 : The code was using $group->password instead of $group->enrolmentkey. --- diff --git a/enrol/manual/enrol.php b/enrol/manual/enrol.php index c4f7c1df01..43bb52cdf7 100644 --- a/enrol/manual/enrol.php +++ b/enrol/manual/enrol.php @@ -178,10 +178,9 @@ function check_entry($form, $course) { */ function check_group_entry ($courseid, $password) { $ingroup = false; - if (($groups = get_groups($courseid)) !== false) { foreach ($groups as $group) { - if ( !empty($group->password) and ($password == $group->password) ) { + if ( !empty($group->enrolmentkey) and ($password == $group->enrolmentkey) ) { $ingroup = $group->id; } }