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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user