mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Code optimization and cleanup.
This commit is contained in:
@@ -45,7 +45,7 @@ class auth_login extends alt_auth_base
|
||||
*
|
||||
* @return AUTH_xxxx result code
|
||||
*/
|
||||
public function auth_login()
|
||||
public function __construct()
|
||||
{
|
||||
$this->copyAttribs = array();
|
||||
$this->copyMethods = array();
|
||||
@@ -128,7 +128,7 @@ class auth_login extends alt_auth_base
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
if (!@ldap_close($this->connection))
|
||||
if (!@ldap_unbind($this->connection))
|
||||
{
|
||||
$this->makeErrorText(); // Read the error code and explanatory string
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user