Skip to content

Commit

Permalink
ldap_close is an alias of ldap_unbind. No need to call the same funct…
Browse files Browse the repository at this point in the history
…ion (#9)

twice.
  • Loading branch information
watermark authored and darensipes committed Oct 3, 2017
1 parent c37f4e3 commit 41c4fa7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Auth/LdapAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ function ($errorNumber, $errorText, $errorFile, $errorLine) {
} catch (ErrorException $e) {
// Do Nothing
}
try {
ldap_close($this->ldapConnection);
} catch (ErrorException $e) {
// Do Nothing
}

restore_error_handler();
}
Expand Down

0 comments on commit 41c4fa7

Please sign in to comment.