]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1368901 - get_phab_members_by_bmo_id() throws error from Phabricator when no...
authorDavid Lawrence <dkl@mozilla.com>
Sun, 28 May 2017 14:38:20 +0000 (10:38 -0400)
committerDavid Lawrence <dkl@mozilla.com>
Sun, 28 May 2017 14:39:00 +0000 (10:39 -0400)
extensions/PhabBugz/bin/update_project_members.pl

index 712368d2da98a107d69459c62e6f5afe5829bbfe..56c471fe8e837f22d4e23d49dcc8965703737e16 100755 (executable)
@@ -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);