summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-06-12 10:38:43 +0200
committerByron Jones <bjones@mozilla.com>2013-06-12 10:38:43 +0200
commit75645b089d19ff211dbf19007a7048c0e8f8b521 (patch)
treeded403839e76d753e99d6825a32e8232643d2393 /extensions
parentb9915abd8c37fd3c48a84ab8463c9765b6e20814 (diff)
downloadbugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.gz
bugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.xz
Bug 882059: fix "use of uninitialized value" warnings, and ignore some errors/warnings
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Voting/Extension.pm1
1 files changed, 1 insertions, 0 deletions
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;