From f162521444148d622df3b42a8304b6cce8f2150e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 6 Jul 2006 13:12:04 +0000 Subject: Bug 173629: Clean up "my" variable scoping issues for mod_perl Patch By Max Kanat-Alexander r=LpSolit, a=myk --- request.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'request.cgi') diff --git a/request.cgi b/request.cgi index 3057eebd6..aee9c0387 100755 --- a/request.cgi +++ b/request.cgi @@ -41,11 +41,9 @@ use Bugzilla::Component; # Make sure the user is logged in. my $user = Bugzilla->login(); -my $userid = $user->id; my $cgi = Bugzilla->cgi; -my $template = Bugzilla->template; -my $vars = {}; +local our $vars = {}; ################################################################################ @@ -74,6 +72,9 @@ exit; sub queue { my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; + my $template = Bugzilla->template; + my $user = Bugzilla->user; + my $userid = $user->id; my $status = validateStatus($cgi->param('status')); my $form_group = validateGroup($cgi->param('group')); -- cgit v1.2.3-65-gdbad