Skip to content

Commit

Permalink
Some old fix, that wasn't checked in
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 5, 2006
1 parent 3699264 commit 0b5f5c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b5f5c0

Please sign in to comment.