summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-22 22:52:30 +0200
committerlpsolit%gmail.com <>2007-07-22 22:52:30 +0200
commit037e0329c03537cdb893c6a50758a087f00d8fbc (patch)
treeb88cfed10e23c124d15333062777b7877f1120bc
parentb3389a8ce4312bbb7e27ffd17d454c35150c5888 (diff)
downloadbugzilla-037e0329c03537cdb893c6a50758a087f00d8fbc.tar.gz
bugzilla-037e0329c03537cdb893c6a50758a087f00d8fbc.tar.xz
Really return a boolean
-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'};
}