mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Fix differential.createrevision conduit call
Summary: This introduces some boundary checking for PhabricatorOwnersOwner::loadAffiliatedUserPHIDs() if it gets passed an empty array, which happened when I ran arc diff and it called differential.createrevision. Test Plan: ran arc diff Reviewers: epriestley, meitros, jungejason CC: aran Differential Revision: https://secure.phabricator.com/D2112
This commit is contained in:
parent
ff2b58dab7
commit
efb49a6a09
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ final class PhabricatorOwnersOwner extends PhabricatorOwnersDAO {
|
|||
// Loads all user phids affiliated with a set of packages. This includes both
|
||||
// user owners and all members of any project owners
|
||||
public static function loadAffiliatedUserPHIDs(array $package_ids) {
|
||||
if (!$package_ids) {
|
||||
return array();
|
||||
}
|
||||
$owners = id(new PhabricatorOwnersOwner())->loadAllWhere(
|
||||
'packageID IN (%Ls)',
|
||||
$package_ids);
|
||||
|
|
Loading…
Reference in a new issue