summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-07-29 23:59:22 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-07-29 23:59:22 +0200
commit648639c8dec6cb659fcfb09e609c654484a0b31a (patch)
tree078fc3faaa28ba3e9178eba95079a764d6834240
parent36bbe56a13c76ce0ae0f9ffa58074e98e6250b09 (diff)
downloadbugzilla-648639c8dec6cb659fcfb09e609c654484a0b31a.tar.gz
bugzilla-648639c8dec6cb659fcfb09e609c654484a0b31a.tar.xz
Bug 899323 - SENTRY ERROR: Use of uninitialized value in numeric eq (==) at /data/www/bugzilla.mozilla.org/extensions/Needinfo/Extension.pm line 154.
-rw-r--r--extensions/Needinfo/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index 622221507..48a181998 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -154,7 +154,7 @@ sub bug_start_of_update {
if ($bug->{added_comments}
&& (!$flag->requestee || $flag->requestee->login eq Bugzilla->user->login)
&& (!$is_private || $flag->setter->is_insider)
- && grep($_ == $flag->id, @needinfo_overrides))
+ && (scalar @needinfo_overrides && grep($_ == $flag->id, @needinfo_overrides)))
{
$clear_needinfo = 1;
}