mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -60,7 +60,7 @@ class alt_auth_base
|
||||
|
||||
$sql->db_Select('alt_auth', '*', "auth_type = '".$prefix."' ");
|
||||
$parm = array();
|
||||
while($row = $sql->db_Fetch())
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$parm[$row['auth_parmname']] = base64_decode(base64_decode($row['auth_parmval']));
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@ class auth_login extends alt_auth_base
|
||||
|
||||
// Now look at their password - we always need to verify it, even if its a core E107 format.
|
||||
// Higher levels will always convert an authorised password to E107 format and save it for us.
|
||||
if (!$row = $sql->db_Fetch())
|
||||
if (!$row = $sql->fetch())
|
||||
{
|
||||
$this->makeErrorText('Error reading DB');
|
||||
return AUTH_NOCONNECT; // Debateable return code - really a DB error. But consistent with other handler
|
||||
|
@@ -43,7 +43,7 @@ class auth_login extends alt_auth_base
|
||||
/**
|
||||
* Read configuration, initialise connection to LDAP database
|
||||
*
|
||||
* @return AUTH_xxxx result code
|
||||
* @return integer AUTH_xxxx result code
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
@@ -44,7 +44,7 @@ class auth_login extends alt_auth_base
|
||||
/**
|
||||
* Read configuration, initialise connection to LDAP database
|
||||
*
|
||||
* @return AUTH_xxxx result code
|
||||
* @return int AUTH_xxxx result code
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
Reference in New Issue
Block a user