diff options
author | lpsolit%gmail.com <> | 2007-07-22 22:52:30 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-07-22 22:52:30 +0200 |
commit | 037e0329c03537cdb893c6a50758a087f00d8fbc (patch) | |
tree | b88cfed10e23c124d15333062777b7877f1120bc | |
parent | b3389a8ce4312bbb7e27ffd17d454c35150c5888 (diff) | |
download | bugzilla-037e0329c03537cdb893c6a50758a087f00d8fbc.tar.gz bugzilla-037e0329c03537cdb893c6a50758a087f00d8fbc.tar.xz |
Really return a boolean
-rw-r--r-- | Bugzilla/User.pm | 2 |
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'}; } |