mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Fix access to undeclared variable when trying to create invalid Auth provider
Summary: Ref T6971. This fixes the error the user reported. Not sure what's up with the root cause of their issue. Test Plan: Went to `/auth/config/new/asdfqwer/` and got a 404 instead of an exception. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T6971 Differential Revision: https://secure.phabricator.com/D11388
This commit is contained in:
parent
2ff85620f0
commit
39406bd1f3
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ final class PhabricatorAuthEditController
|
||||||
|
|
||||||
$is_new = false;
|
$is_new = false;
|
||||||
} else {
|
} else {
|
||||||
|
$provider = null;
|
||||||
|
|
||||||
$providers = PhabricatorAuthProvider::getAllBaseProviders();
|
$providers = PhabricatorAuthProvider::getAllBaseProviders();
|
||||||
foreach ($providers as $candidate_provider) {
|
foreach ($providers as $candidate_provider) {
|
||||||
if (get_class($candidate_provider) === $provider_class) {
|
if (get_class($candidate_provider) === $provider_class) {
|
||||||
|
|
Loading…
Reference in a new issue