1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

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
This commit is contained in:
Ricky Elrod 2013-01-24 17:48:50 -08:00 committed by epriestley
parent 2584af2cb8
commit 184be964a2

View file

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