Move the MailQueue Action out of the get email loop on close Bulk Tickets this prevent unessessary mysql connections

This commit is contained in:
johnnyq 2024-01-30 16:55:04 -05:00
parent e524f1ce7c
commit da98f84774
1 changed files with 1 additions and 2 deletions

View File

@ -707,9 +707,8 @@ if (isset($_POST['bulk_close_tickets'])) {
'body' => $body
];
}
addToMailQueue($mysqli, $data);
}
addToMailQueue($mysqli, $data);
} // End Mail IF
} // End Loop
} // End Array Empty Check