diff --git a/src/applications/search/menuitem/PhabricatorApplicationProfileMenuItem.php b/src/applications/search/menuitem/PhabricatorApplicationProfileMenuItem.php index 92477522ba..aa42d56cfb 100644 --- a/src/applications/search/menuitem/PhabricatorApplicationProfileMenuItem.php +++ b/src/applications/search/menuitem/PhabricatorApplicationProfileMenuItem.php @@ -60,12 +60,12 @@ final class PhabricatorApplicationProfileMenuItem $viewer = $this->getViewer(); $phid = $config->getMenuItemProperty('application'); - $app = id(new PhabricatorApplicationQuery()) + $apps = id(new PhabricatorApplicationQuery()) ->setViewer($viewer) ->withPHIDs(array($phid)) - ->executeOne(); + ->execute(); - return $app; + return head($apps); } protected function newNavigationMenuItems(