fixed typo

This commit is contained in:
Roland Gruber 2015-03-01 19:20:29 +00:00
parent 3d0ddd7708
commit ebe9d4aca2
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ function ldapGetDN($dn, $attributes = array('dn'), $handle = null) {
$return = null;
$sr = @ldap_read($handle, escapeDN($dn), 'objectClass=*', $attributes, 0, 0, 0, LDAP_DEREF_NEVER);
if ($sr) {
$entries = ldap_get_entries($_SESSION['ldap']->server(), $sr);
$entries = ldap_get_entries($handle, $sr);
if ($entries) {
cleanLDAPResult($entries);
$return = $entries[0];