mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
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:
parent
183bb8c80f
commit
59946d6433
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue