[feature/auth-refactor] Fix indentation on acp_board

PHPBB3-9734
This commit is contained in:
Joseph Warner 2013-06-25 22:25:40 -04:00
parent 3c394aee62
commit 08614e2b85

View file

@ -561,11 +561,9 @@ class acp_board
if ($submit && (($cfg_array['auth_method'] != $this->new_config['auth_method']) || $updated_auth_settings)) if ($submit && (($cfg_array['auth_method'] != $this->new_config['auth_method']) || $updated_auth_settings))
{ {
$method = basename($cfg_array['auth_method']); $method = basename($cfg_array['auth_method']);
if ($method) if (array_key_exists('auth.provider.' . $method, $auth_providers))
{ {
$provider = $auth_providers['auth.provider.' . $method]; $provider = $auth_providers['auth.provider.' . $method];
if ($provider)
{
if ($error = $provider->init()) if ($error = $provider->init())
{ {
foreach ($old_auth_config as $config_name => $config_value) foreach ($old_auth_config as $config_name => $config_value)
@ -574,7 +572,6 @@ class acp_board
} }
trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING); trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
} }
}
set_config('auth_method', basename($cfg_array['auth_method'])); set_config('auth_method', basename($cfg_array['auth_method']));
} }
else else