From 9b98e5f442c2305f250f31062fcb77e0180a5cec Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sun, 28 May 2017 10:38:20 -0400 Subject: Bug 1368901 - get_phab_members_by_bmo_id() throws error from Phabricator when no users are part of the bmo group --- extensions/PhabBugz/bin/update_project_members.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/PhabBugz/bin/update_project_members.pl b/extensions/PhabBugz/bin/update_project_members.pl index 712368d2d..56c471fe8 100755 --- a/extensions/PhabBugz/bin/update_project_members.pl +++ b/extensions/PhabBugz/bin/update_project_members.pl @@ -61,7 +61,10 @@ foreach my $group (@$sync_groups) { } # Get the internal user ids for the bugzilla group members - my $phab_user_ids = get_phab_members_by_bmo_id(\@users); + my $phab_user_ids = []; + if (@users) { + $phab_user_ids = get_phab_members_by_bmo_id(\@users); + } # Set the project members to the exact list set_phab_project_members($project_id, $phab_user_ids); -- cgit v1.2.3-24-g4f1b