never match undefined content

master
Benjamin Schieder 2017-05-01 13:01:44 +01:00
parent 3c70b97feb
commit 99b0ea2adb
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ sub apply {
my $match = 1;
my $arg = $self->{data}->{field};
return 0 unless defined($arg);
if ($arg eq "content"){
$arg = $entry->content()->body;
} else {