From 75645b089d19ff211dbf19007a7048c0e8f8b521 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 12 Jun 2013 16:38:43 +0800 Subject: Bug 882059: fix "use of uninitialized value" warnings, and ignore some errors/warnings --- extensions/Voting/Extension.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'extensions') diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index b8763b4df..aecd2382c 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -421,6 +421,7 @@ sub _page_user { # If a bug_id is given, and we're editing, we'll add it to the votes list. my $bug_id = $input->{bug_id}; + $bug_id = $bug_id->[0] if ref($bug_id) eq 'ARRAY'; my $bug = Bugzilla::Bug->check($bug_id) if $bug_id; my $who_id = $input->{user_id} || $user->id; -- cgit v1.2.3-24-g4f1b