[ticket/16670] Fix ACP check-in for OAuth provider keys - PHP 8

PHPBB3-16670
This commit is contained in:
3D-I 2020-12-31 10:18:32 +01:00
parent 91e0e84387
commit 8382b36823

View file

@ -688,7 +688,7 @@ 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 (array_key_exists('auth.provider.' . $method, $auth_providers)) if (array_key_exists('auth.provider.' . $method, (array) $auth_providers))
{ {
$provider = $auth_providers['auth.provider.' . $method]; $provider = $auth_providers['auth.provider.' . $method];
if ($error = $provider->init()) if ($error = $provider->init())