summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/WebService/Util.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Util.pm b/Bugzilla/WebService/Util.pm
index 51e45cc14..ac57549f2 100644
--- a/Bugzilla/WebService/Util.pm
+++ b/Bugzilla/WebService/Util.pm
@@ -108,11 +108,12 @@ sub translate {
sub params_to_objects {
my ($params, $class) = @_;
+ my (@objects, @objects_by_ids);
- my @objects = map { $class->check($_) }
+ @objects = map { $class->check($_) }
@{ $params->{names} } if $params->{names};
- my @objects_by_ids = map { $class->check({ id => $_ }) }
+ @objects_by_ids = map { $class->check({ id => $_ }) }
@{ $params->{ids} } if $params->{ids};
push(@objects, @objects_by_ids);