diff options
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 0a99598b5..4d6819a36 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -30,8 +30,6 @@ use Bugzilla::User; require "globals.pl"; -use vars qw($userid); - use Bugzilla::Bug; my $cgi = Bugzilla->cgi; @@ -69,7 +67,7 @@ if ($single) { # Its a bit silly to do the validation twice - that functionality should # probably move into Bug.pm at some point ValidateBugID($id); - push @bugs, new Bugzilla::Bug($id, $userid); + push @bugs, new Bugzilla::Bug($id, Bugzilla->user->id); if (defined $cgi->param('mark')) { foreach my $range (split ',', $cgi->param('mark')) { if ($range =~ /^(\d+)-(\d+)$/) { @@ -83,7 +81,7 @@ if ($single) { } } else { foreach my $id ($cgi->param('id')) { - my $bug = new Bugzilla::Bug($id, $userid); + my $bug = new Bugzilla::Bug($id, Bugzilla->user->id); push @bugs, $bug; } } |