1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-23 12:09:12 +01:00

Fix global search scope fatal on 404 page (or other pages with no Application)

Summary: Ref T13405. Some pages don't have a contextual application.

Test Plan: Viewed 404 page, no more fatal.

Maniphest Tasks: T13405

Differential Revision: https://secure.phabricator.com/D20792
This commit is contained in:
epriestley 2019-09-09 12:10:21 -07:00
parent 535c8e6bdc
commit 63c7302af1

View file

@ -118,7 +118,7 @@ final class PhabricatorMainMenuSearchView extends AphrontView {
public static function getGlobalSearchScopeItems(
PhabricatorUser $viewer,
PhabricatorApplication $application) {
PhabricatorApplication $application = null) {
$items = array();
$items[] = array(