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
This commit is contained in:
epriestley
2013-01-23 18:37:40 -08:00
parent 9b8288886f
commit c95ab9bc94

View File

@@ -64,7 +64,11 @@ final class PhabricatorMacroListController
$nodata = pht('There are no image macros yet.'); $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'); $file_phids = mpull($macros, 'getFilePHID');