1
0
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:
Cameron
2020-12-10 15:52:48 -08:00
parent bd3a181e27
commit f605ddc552
39 changed files with 364 additions and 371 deletions

View File

@@ -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;