Skip to content

Commit

Permalink
Issue #5107 Alt-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Nov 20, 2023
1 parent f62050c commit 4a18306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e107_plugins/alt_auth/alt_auth_adminmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static function alt_auth_get_authlist($incE107 = TRUE)
public function alt_auth_get_dropdown($name, $curval = '', $options = '')
{
$optList = explode(',', $options);
$authList = array_merge($optList, self::alt_auth_get_authlist(FALSE));
$authList = array_merge($optList, self::alt_auth_get_authlist());
$ret = "<select class='tbox' name='{$name}'>\n";
foreach ($authList as $v)
{
Expand Down Expand Up @@ -389,13 +389,13 @@ public function alt_auth_test_form($prefix, $frm)
e107::getDebug()->log('Loading: alt_auth/'.$prefix.'_auth.php');

$_login = new auth_login;
$log_result = AUTH_UNKNOWN;
$log_result = defset('AUTH_UNKNOWN');
$pass_vars = array();
$val_name = trim(varset($_POST['nametovalidate']));

if(isset($_login->Available) && ($_login->Available === FALSE))
{ // Relevant auth method not available (e.g. PHP extension not loaded)
$log_result = AUTH_NOT_AVAILABLE;
$log_result = defset('AUTH_NOT_AVAILABLE');
}
else
{
Expand Down

0 comments on commit 4a18306

Please sign in to comment.