Skip to content

Commit

Permalink
PHP8 minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jan 21, 2021
1 parent b0fe87f commit 62adc0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function disableTfa($user_id)
}

// Delete the secret_key from the EUF
if(e107::getUserExt()->set($user_id, "user_plugin_twofactorauth_secret_key", $secret_key))
if(e107::getUserExt()->set($user_id, "user_plugin_twofactorauth_secret_key", null))
{
$message = e107::getParser()->lanVars(LAN_2FA_DISABLE_SUCCESS, $user_id);
e107::getMessage()->addSuccess($message);
Expand Down Expand Up @@ -290,7 +290,7 @@ class twofactorauth_form_ui extends e_admin_form_ui
{

// Override the default Options field.
function options($parms, $value, $id, $attributes)
function options($parms, $value, $id, $options)
{
$action = $this->getController()->getAction();

Expand Down

0 comments on commit 62adc0f

Please sign in to comment.