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