From da98f847748bf2e02f7cedf07c1f1f6a6c3dda0e Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 30 Jan 2024 16:55:04 -0500 Subject: [PATCH] Move the MailQueue Action out of the get email loop on close Bulk Tickets this prevent unessessary mysql connections --- post/ticket.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post/ticket.php b/post/ticket.php index b7ec8c75..57986b27 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -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