Skip to content
Snippets Groups Projects
Commit 3822b15f authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

fix warning for contact without address

parent e3ffa169
No related branches found
No related tags found
No related merge requests found
......@@ -116,8 +116,14 @@ foreach my $id (keys %{$configuration->{federations}}) {
information_url => $entry->{information_url},
organization_url => $entry->{organization_url},
);
$entity->contacts(uniq map { $_->{EmailAddress} } @{$entry->{contacts}})
if $entry->{contacts};
if ($entry->{contacts}) {
my @contacts =
uniq
grep { $_ }
map { $_->{EmailAddress} }
@{$entry->{contacts}};
$entity->contacts(@contacts);
}
$entity->federations($id);
$entity->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment