Commit 037e0329 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Really return a boolean

parent b3389a8c
......@@ -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'};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment