Unverified Commit 4be974c3 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #615 from seblgr/fix-1 by seblgr

Prevent unnecessary DB access in add_list_member
parents 643078e0 5c3b724e
......@@ -3822,7 +3822,10 @@ sub add_list_member {
$self->{'add_outcome'}{'remaining_members_to_add'} =
$self->{'add_outcome'}{'expected_number_of_added_users'};
my $current_list_members_count = $self->get_total; # FIXME: high db load
my $current_list_members_count = 0;
if ($self->{'admin'}{'max_list_members'} > 0) {
$current_list_members_count = $self->get_total; # FIXME: high db load
}
my $sdm = Sympa::DatabaseManager->instance;
......
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