summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorgerv%gerv.net <>2003-11-03 00:22:41 +0100
committergerv%gerv.net <>2003-11-03 00:22:41 +0100
commit92b479d9cc1a9ffcd0d8b738c0717bb35dbeed61 (patch)
tree6344fcaca779a85f7cb7ee63ef1c569891fd035e /Bugzilla
parent5159ae5142a63c13992b335e33ad347adaa3ac70 (diff)
downloadbugzilla-92b479d9cc1a9ffcd0d8b738c0717bb35dbeed61.tar.gz
bugzilla-92b479d9cc1a9ffcd0d8b738c0717bb35dbeed61.tar.xz
Bu 210735 - collectstats.pl broken. Removes "uninitialised value" warning. Patch by gerv; r=bbaetz, a=justdave.
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 " .