summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-07-08 16:12:59 +0200
committerByron Jones <glob@mozilla.com>2014-07-08 16:12:59 +0200
commit9fbf2346bdebe978f65afc52e21f5058c59b5673 (patch)
treed484589e9c9e27a6032ec3ac3be2aaed2de95463
parent2f3b5dd7df3e131af6aef3cd5ccf7e8523c1780e (diff)
downloadbugzilla-9fbf2346bdebe978f65afc52e21f5058c59b5673.tar.gz
bugzilla-9fbf2346bdebe978f65afc52e21f5058c59b5673.tar.xz
Bug 1035825: seeing "Can't use an undefined value as an ARRAY reference" when updating a bug with an empty CC list
-rw-r--r--extensions/BugmailFilter/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/BugmailFilter/Extension.pm b/extensions/BugmailFilter/Extension.pm
index 89564031c..a5fdba922 100644
--- a/extensions/BugmailFilter/Extension.pm
+++ b/extensions/BugmailFilter/Extension.pm
@@ -247,7 +247,9 @@ sub _should_drop {
$rel_map[5] = $bug->qa_contact->id == $user_id;
$rel_map[6] = !$rel_map[6];
}
- $rel_map[7] = grep { $_ eq $login } @{ $bug->cc };
+ $rel_map[7] = $bug->cc
+ ? grep { $_ eq $login } @{ $bug->cc }
+ : 0;
$rel_map[8] = !$rel_map[8];
$rel_map[9] = (
$relationship & $bit_watching