1
0
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:
Cameron
2020-12-14 16:21:48 -08:00
parent c258b856f2
commit 44e260b121
81 changed files with 747 additions and 722 deletions

View File

@@ -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']));
}

View File

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

View File

@@ -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()
{

View File

@@ -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()
{