summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 1a9729ee9..6019a78df 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1518,7 +1518,7 @@ sub is_global_watcher {
if (!defined $self->{'is_global_watcher'}) {
my @watchers = split(/[,\s]+/, Bugzilla->params->{'globalwatchers'});
- $self->{'is_global_watcher'} = grep { $_ eq $self->login } @watchers;
+ $self->{'is_global_watcher'} = scalar(grep { $_ eq $self->login } @watchers) ? 1 : 0;
}
return $self->{'is_global_watcher'};
}