aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index bd838a3346..cbc6dc5031 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -575,6 +575,12 @@ class queue
$package_size = $data_ary['package_size'];
$num_items = (!$package_size || sizeof($data_ary['data']) < $package_size) ? sizeof($data_ary['data']) : $package_size;
+ // If the amount of emails to be sent is way more than package_size than we need to increase it to prevent backlogs...
+ if (sizeof($data_ary['data']) > $package_size * 2.5)
+ {
+ $num_items = sizeof($data_ary['data']);
+ }
+
switch ($object)
{
case 'email':