diff options
author | Byron Jones <bjones@mozilla.com> | 2013-06-12 10:38:43 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-06-12 10:38:43 +0200 |
commit | 75645b089d19ff211dbf19007a7048c0e8f8b521 (patch) | |
tree | ded403839e76d753e99d6825a32e8232643d2393 /buglist.cgi | |
parent | b9915abd8c37fd3c48a84ab8463c9765b6e20814 (diff) | |
download | bugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.gz bugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.xz |
Bug 882059: fix "use of uninitialized value" warnings, and ignore some errors/warnings
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/buglist.cgi b/buglist.cgi index 2d81ed56d..27badae7c 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -490,14 +490,16 @@ elsif (($cmdtype eq "doit") && defined $cgi->param('remtype')) { or ThrowUserError('no_tag_to_edit', {action => $action}); my @buglist; - # Validate all bug IDs before editing tags in any of them. - foreach my $bug_id (split(/[\s,]+/, $cgi->param('bug_ids'))) { - next unless $bug_id; - push(@buglist, Bugzilla::Bug->check($bug_id)); - } + if ($cgi->param('bug_ids')) { + # Validate all bug IDs before editing tags in any of them. + foreach my $bug_id (split(/[\s,]+/, $cgi->param('bug_ids'))) { + next unless $bug_id; + push(@buglist, Bugzilla::Bug->check($bug_id)); + } - foreach my $bug (@buglist) { - $bug->$method($query_name); + foreach my $bug (@buglist) { + $bug->$method($query_name); + } } $vars->{'message'} = 'tag_updated'; |