Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
45882db6
Commit
45882db6
authored
Aug 16, 2017
by
IKEDA Soji
Browse files
Issue #37: WWSympa/edit_list: Removing owner may cause crash.
parent
b51ced4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
45882db6
...
...
@@ -10939,12 +10939,13 @@ sub _notify_added_admin {
my %previous_emails = map {
($_->{email} => 1)
} @{$config->get($admin_type) || []};
my %new_emails = map {
($_->{email} => 1)
} grep {$_} values %{$config->get_change($admin_type) || {}};
my @new_emails =
grep {$_}
map { $_->{email} }
grep {$_} values %{$config->get_change($admin_type) || {}};
# Compare with new entries.
foreach my $email (
keys %
new_emails) {
foreach my $email (
@
new_emails) {
unless ($previous_emails{$email}) {
# Notify the new list owner/editor
Sympa::send_notify_to_user(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment