diff options
author | mkanat%bugzilla.org <> | 2006-10-21 03:50:30 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-10-21 03:50:30 +0000 |
commit | 0b954e5dc3a6e199252c97d876113b013eb3d3bd (patch) | |
tree | 5e2bcc48c4cc2bb02dbd8583e423d5917ac30278 /showdependencytree.cgi | |
parent | Bug 352243: Make editusers.cgi use Bugzilla::User for basic user updates (diff) | |
download | bugzilla-0b954e5dc3a6e199252c97d876113b013eb3d3bd.tar.gz bugzilla-0b954e5dc3a6e199252c97d876113b013eb3d3bd.tar.bz2 bugzilla-0b954e5dc3a6e199252c97d876113b013eb3d3bd.zip |
Bug 348923: Clean up a few more variable-scoping issues for mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-x | showdependencytree.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi index dfc715cf8..1010adcd0 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -53,9 +53,9 @@ my $id = $cgi->param('id') || ThrowUserError('invalid_bug_id_or_alias'); ValidateBugID($id); my $current_bug = new Bugzilla::Bug($id); -my $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0; +local our $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0; -my $maxdepth = $cgi->param('maxdepth') || 0; +local our $maxdepth = $cgi->param('maxdepth') || 0; if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 }; ################################################################################ @@ -63,7 +63,7 @@ if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 }; ################################################################################ # Stores the greatest depth to which either tree goes. -my $realdepth = 0; +local our $realdepth = 0; # Generate the tree of bugs that this bug depends on and a list of IDs # appearing in the tree. |