Skip to content

Commit

Permalink
MDL-8963 : The code was using $group->password instead of $group->enr…
Browse files Browse the repository at this point in the history
…olmentkey.
  • Loading branch information
nicolasconnault committed Mar 21, 2007
1 parent af007d9 commit 8d96b8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enrol/manual/enrol.php
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8d96b8a

Please sign in to comment.