fixed typo
This commit is contained in:
parent
3d0ddd7708
commit
ebe9d4aca2
|
@ -782,7 +782,7 @@ function ldapGetDN($dn, $attributes = array('dn'), $handle = null) {
|
||||||
$return = null;
|
$return = null;
|
||||||
$sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes, 0, 0, 0, LDAP_DEREF_NEVER);
|
$sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes, 0, 0, 0, LDAP_DEREF_NEVER);
|
||||||
if ($sr) {
|
if ($sr) {
|
||||||
$entries = ldap_get_entries($_SESSION['ldap']->server(), $sr);
|
$entries = ldap_get_entries($handle, $sr);
|
||||||
if ($entries) {
|
if ($entries) {
|
||||||
cleanLDAPResult($entries);
|
cleanLDAPResult($entries);
|
||||||
$return = $entries[0];
|
$return = $entries[0];
|
||||||
|
|
Loading…
Reference in New Issue