diff --git a/webtools/testopia/tr_tags.cgi b/webtools/testopia/tr_tags.cgi index 0eb55fe89f2..fd7ed74a5a5 100755 --- a/webtools/testopia/tr_tags.cgi +++ b/webtools/testopia/tr_tags.cgi @@ -152,7 +152,8 @@ else { sub display { my $dbh = Bugzilla->dbh; my @tags; - my $user = login_to_id($cgi->param('user')); + my $user; + $user = login_to_id($cgi->param('user')) if $cgi->param('user'); if ($cgi->param('action') eq 'show_all' && Bugzilla->user->in_group('admin')){ my $tags = $dbh->selectcol_arrayref(