Token - fix fatal for installs with no tokens yet given
Summary: fixes github issue 326 Test Plan: visited /token/leaders and observed no fatals. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6021
This commit is contained in:
@@ -16,6 +16,7 @@ final class PhabricatorTokenLeaderController
|
||||
$counts = $query->getTokenCounts();
|
||||
|
||||
$handles = array();
|
||||
$phids = array();
|
||||
if ($counts) {
|
||||
$phids = mpull($objects, 'getPHID');
|
||||
$handles = id(new PhabricatorObjectHandleData($phids))
|
||||
|
||||
Reference in New Issue
Block a user