summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index ff0db1baa..b85e44985 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2654,7 +2654,8 @@ sub _long_desc_nonchanged {
# If the user is not part of the insiders group, they cannot see
# private comments
if (!$self->_user->is_insider) {
- $join_args->{term} .= " AND $table.isprivate = 0";
+ $join_args->{term} .= ($join_args->{term} ? " AND " : "")
+ . "$table.isprivate = 0";
}
my $join = {