1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17489] Further queue logic adjustments

Saving queue is not needed if use_queue flag is set to false
as in this case the message should be set immediately in the runtime.

PHPBB-17487
PHPBB-17489
This commit is contained in:
rxu
2025-04-04 00:04:45 +07:00
parent cebc19f2ed
commit f9e6385e84
3 changed files with 2 additions and 24 deletions

View File

@@ -269,23 +269,12 @@ class acp_email
}
$errored = !$messenger_method->send() || $errored;
$messenger_method->save_queue();
}
}
}
unset($email_list);
if ($use_queue)
{
/**
* @var \phpbb\messenger\method\messenger_interface $messenger_method
* @psalm-suppress UndefinedMethod
*/
foreach ($messenger_collection_iterator as $messenger_method)
{
$messenger_method->save_queue();
}
}
if ($generate_log_entry)
{
if (!empty($usernames))