summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/BugmailFilter/lib/Filter.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BugmailFilter/lib/Filter.pm b/extensions/BugmailFilter/lib/Filter.pm
index a20f472d5..a6e8af459 100644
--- a/extensions/BugmailFilter/lib/Filter.pm
+++ b/extensions/BugmailFilter/lib/Filter.pm
@@ -167,7 +167,7 @@ sub matches {
my ($self, $args) = @_;
if (my $field_name = $self->{field_name}) {
- if (substr($field_name, 0, 1) eq '~') {
+ if ($args->{field}->{field_name} && substr($field_name, 0, 1) eq '~') {
my $substring = quotemeta(substr($field_name, 1));
if ($args->{field}->{field_name} !~ /$substring/i) {
return 0;