1
0
Fork 0
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:
Bob Trahan 2013-05-23 11:58:23 -07:00
parent 183bb8c80f
commit 59946d6433

View file

@ -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))