diff --git a/scripts/zmfilter.pl.in b/scripts/zmfilter.pl.in index 5e3d645d7b..c4aeb9da46 100644 --- a/scripts/zmfilter.pl.in +++ b/scripts/zmfilter.pl.in @@ -648,6 +648,7 @@ sub substituteTags { my $filter = shift; my $Event = @_ ? shift : undef; my $attachments_ref = shift if @_; + my $options = @_ ? shift : {}; # First we'd better check what we need to get # We have a filter and an event, do we need any more @@ -658,7 +659,7 @@ sub substituteTags { my $Monitor = $Event->Monitor() if $Event and $need_monitor; my $Summary = $Monitor->Event_Summary() if $Monitor and $need_summary; - my $html = ($text =~ /$html}); foreach my $event (@events) { - $body .= substituteTags($summary_part, $filter, $event, \@attachments); + $body .= substituteTags($summary_part, $filter, $event, \@attachments, {html=>$html}); } return 0 if !$body; $body .= $body_tail;