From 59946d6433f3b3f3e25e7b694c57fe6e02bc2ebd Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Thu, 23 May 2013 11:58:23 -0700 Subject: [PATCH] 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 --- .../tokens/controller/PhabricatorTokenLeaderController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/tokens/controller/PhabricatorTokenLeaderController.php b/src/applications/tokens/controller/PhabricatorTokenLeaderController.php index fafb60e612..fe2b7e5eb3 100644 --- a/src/applications/tokens/controller/PhabricatorTokenLeaderController.php +++ b/src/applications/tokens/controller/PhabricatorTokenLeaderController.php @@ -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))