From 184be964a27c4793ce25deacf5d259ddd768062b Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Thu, 24 Jan 2013 17:48:50 -0800 Subject: [PATCH] Fix fatal when looking at an unknown-config error. Summary: Going to /config/issue/config.unknown.phabricator.setup/ fataled with Call to a member function getLocked() on a non-object Test Plan: Went to /config/issue/config.unknown.phabricator.setup/ and saw the page render. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4633 --- src/applications/config/view/PhabricatorSetupIssueView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/config/view/PhabricatorSetupIssueView.php b/src/applications/config/view/PhabricatorSetupIssueView.php index 79886b01d4..c85caed1ee 100644 --- a/src/applications/config/view/PhabricatorSetupIssueView.php +++ b/src/applications/config/view/PhabricatorSetupIssueView.php @@ -169,7 +169,7 @@ final class PhabricatorSetupIssueView extends AphrontView { } else { $update = array(); foreach ($configs as $config) { - if ($options[$config]->getLocked()) { + if (!idx($options, $config) || $options[$config]->getLocked()) { continue; } $link = phutil_render_tag(