mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
Remove mysqli connection vars when passing mail data to addToMailQueue Function
This commit is contained in:
@@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
'body' => $body
|
||||
]
|
||||
];
|
||||
$mail = addToMailQueue($mysqli, $data);
|
||||
$mail = addToMailQueue($data);
|
||||
|
||||
// Error handling
|
||||
if ($mail !== true) {
|
||||
@@ -147,7 +147,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
]
|
||||
];
|
||||
|
||||
$mail = addToMailQueue($mysqli, $data);
|
||||
$mail = addToMailQueue($data);
|
||||
|
||||
// Error handling
|
||||
if ($mail !== true) {
|
||||
|
||||
@@ -60,7 +60,7 @@ if (isset($_POST['add_ticket'])) {
|
||||
'body' => $email_body,
|
||||
]
|
||||
];
|
||||
addToMailQueue($mysqli, $data);
|
||||
addToMailQueue($data);
|
||||
}
|
||||
|
||||
// Custom action/notif handler
|
||||
@@ -125,7 +125,7 @@ if (isset($_POST['add_ticket_comment'])) {
|
||||
]
|
||||
];
|
||||
|
||||
addToMailQueue($mysqli, $data);
|
||||
addToMailQueue($data);
|
||||
|
||||
}
|
||||
|
||||
@@ -628,7 +628,7 @@ if (isset($_GET['stripe_save_card'])) {
|
||||
]
|
||||
];
|
||||
|
||||
$mail = addToMailQueue($mysqli, $data);
|
||||
$mail = addToMailQueue($data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user