Commit 45882db6 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Issue #37: WWSympa/edit_list: Removing owner may cause crash.

parent b51ced4b
...@@ -10939,12 +10939,13 @@ sub _notify_added_admin { ...@@ -10939,12 +10939,13 @@ sub _notify_added_admin {
my %previous_emails = map { my %previous_emails = map {
($_->{email} => 1) ($_->{email} => 1)
} @{$config->get($admin_type) || []}; } @{$config->get($admin_type) || []};
my %new_emails = map { my @new_emails =
($_->{email} => 1) grep {$_}
} grep {$_} values %{$config->get_change($admin_type) || {}}; map { $_->{email} }
grep {$_} values %{$config->get_change($admin_type) || {}};
   
# Compare with new entries. # Compare with new entries.
foreach my $email (keys %new_emails) { foreach my $email (@new_emails) {
unless ($previous_emails{$email}) { unless ($previous_emails{$email}) {
# Notify the new list owner/editor # Notify the new list owner/editor
Sympa::send_notify_to_user( Sympa::send_notify_to_user(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment