From c95ab9bc947c139b90466039d4a970a161e969b1 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 23 Jan 2013 18:37:40 -0800 Subject: [PATCH] Fix (?) macro list issue Summary: @chad, does this fix your issue? Test Plan: @chad pls test thx Reviewers: chad Reviewed By: chad CC: aran Maniphest Tasks: T2391 Differential Revision: https://secure.phabricator.com/D4610 --- .../macro/controller/PhabricatorMacroListController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applications/macro/controller/PhabricatorMacroListController.php b/src/applications/macro/controller/PhabricatorMacroListController.php index 828cbf01a0..d52f52327f 100644 --- a/src/applications/macro/controller/PhabricatorMacroListController.php +++ b/src/applications/macro/controller/PhabricatorMacroListController.php @@ -64,7 +64,11 @@ final class PhabricatorMacroListController $nodata = pht('There are no image macros yet.'); } - $author_phids = array_combine($authors, $authors); + if ($authors) { + $author_phids = array_combine($authors, $authors); + } else { + $author_phids = array(); + } $file_phids = mpull($macros, 'getFilePHID');