mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Some old fix, that wasn't checked in
This commit is contained in:
parent
3699264c68
commit
0b5f5c0de0
@ -1246,7 +1246,8 @@ function auth_ldap_isgroupmember ($username='', $groupdns='') {
|
||||
}
|
||||
//echo "Checking group $group for member $username\n";
|
||||
$search = @ldap_read($ldapconnection, $group, '('.$CFG->ldap_memberattribute.'='.$username.')', array($CFG->ldap_memberattribute));
|
||||
if (ldap_count_entries($ldapconnection, $search)) {$info = auth_ldap_get_entries($ldapconnection, $search);
|
||||
|
||||
if (!empty($search) AND ldap_count_entries($ldapconnection, $search)) {$info = auth_ldap_get_entries($ldapconnection, $search);
|
||||
|
||||
if (count($info) > 0 ) {
|
||||
// user is member of group
|
||||
|
Loading…
x
Reference in New Issue
Block a user