1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 06:38:43 +01:00

Merge pull request #6101 from 3D-I/ticket/16670

[ticket/16670] Fix ACP check-in for OAuth provider keys - PHP 8
This commit is contained in:
Marc Alexander 2021-01-04 21:43:58 +01:00
commit 8afcaaddab
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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