summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 09c47d471..3a211e078 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -58,6 +58,7 @@ sub init {
my $self = shift;
my $fieldsref = $self->{'fields'};
my $params = $self->{'params'};
+ my $user = $self->{'user'} || Bugzilla->user;
my $debug = 0;
@@ -991,8 +992,6 @@ sub init {
# Make sure we create a legal SQL query.
@andlist = ("1 = 1") if !@andlist;
- my $user = Bugzilla->user;
-
my $query = "SELECT " . join(', ', @fields) .
" FROM $suppstring" .
" LEFT JOIN bug_group_map " .