From 4876a566a48fc5925e769f4154b873f5d8324e89 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 21 Mar 2007 06:20:02 +0000 Subject: [PATCH] MDL-8963 : The code was using $group->password instead of $group->enrolmentkey. --- enrol/manual/enrol.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } } -- 2.39.5