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:
parent
2584af2cb8
commit
184be964a2
|
@ -169,7 +169,7 @@ final class PhabricatorSetupIssueView extends AphrontView {
|
||||||
} else {
|
} else {
|
||||||
$update = array();
|
$update = array();
|
||||||
foreach ($configs as $config) {
|
foreach ($configs as $config) {
|
||||||
if ($options[$config]->getLocked()) {
|
if (!idx($options, $config) || $options[$config]->getLocked()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$link = phutil_render_tag(
|
$link = phutil_render_tag(
|
||||||
|
|
Loading…
Reference in a new issue