diff --git a/lib/IdPAccountManager/SAMLMetadata.pm b/lib/IdPAccountManager/SAMLMetadata.pm index 8906a25b77d7a9534d1a265d200712b81d5c9535..53a45fc3cf97cee0961fb4bfd058187d62aa8c89 100644 --- a/lib/IdPAccountManager/SAMLMetadata.pm +++ b/lib/IdPAccountManager/SAMLMetadata.pm @@ -207,9 +207,7 @@ sub parse { } ## Filter entities based on type - next - if (defined $args{filter_entity_type} - && ($args{filter_entity_type} ne $data->{type})); + next if $args{entity_type} && $args{entity_type} ne $data->{type}; ## Merge domains in a single string my $domains = join(',', @{ $data->{domain} })