mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 15:54:43 +02:00
Code optimization and cleanup.
This commit is contained in:
@@ -454,7 +454,7 @@ class alt_auth_admin extends alt_auth_base
|
||||
break;
|
||||
default :
|
||||
$err = "Coding error";
|
||||
var_dump($log_result);
|
||||
e107::getDebug()->log($log_result);
|
||||
}
|
||||
|
||||
if(!empty($err))
|
||||
|
@@ -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