mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 19:20:23 +02:00
[ticket/17135] Optimize save_queue() method calls
PHPBB-17135
This commit is contained in:
@@ -265,16 +265,18 @@ class acp_email
|
||||
}
|
||||
|
||||
$errored = !$messenger_method->send() || $errored;
|
||||
if ($use_queue)
|
||||
{
|
||||
$messenger_method->save_queue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($email_list);
|
||||
|
||||
$messenger->save_queue();
|
||||
if ($use_queue)
|
||||
{
|
||||
foreach ($messenger_collection_iterator as $messenger_method)
|
||||
{
|
||||
$messenger_method->save_queue();
|
||||
}
|
||||
}
|
||||
|
||||
if ($generate_log_entry)
|
||||
{
|
||||
|
Reference in New Issue
Block a user