From 4d3d4ef6e64cd22ddf181669af139b6317f5aed7 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Mon, 1 May 2017 18:35:52 +0100 Subject: [PATCH] move check to correct line --- RSSTootalizer/Filter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RSSTootalizer/Filter.pm b/RSSTootalizer/Filter.pm index 3b68296..269f866 100644 --- a/RSSTootalizer/Filter.pm +++ b/RSSTootalizer/Filter.pm @@ -20,12 +20,12 @@ sub apply { my $match = 1; my $arg = $self->{data}->{field}; - return 0 unless defined($arg); if ($arg eq "content"){ $arg = $entry->content()->body; } else { $arg = $entry->$arg(); } + return 0 unless defined($arg); my $regex = uri_unescape($self->{data}->{regex}); $regex =~ s,\\\\,\\,g;