mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Remove mysqli connection vars when passing mail data to addToMailQueue Function
This commit is contained in:
@@ -94,7 +94,7 @@ if (isset($_POST['add_event'])) {
|
||||
'body' => $body
|
||||
]
|
||||
];
|
||||
$mail = addToMailQueue($mysqli, $data);
|
||||
$mail = addToMailQueue($data);
|
||||
|
||||
// Logging for email (success/fail)
|
||||
if ($mail === true) {
|
||||
@@ -163,7 +163,7 @@ if (isset($_POST['edit_event'])) {
|
||||
'body' => $body
|
||||
]
|
||||
];
|
||||
$mail = addToMailQueue($mysqli, $data);
|
||||
$mail = addToMailQueue($data);
|
||||
// Logging for email (success/fail)
|
||||
if ($mail === true) {
|
||||
logAction("Calendar Event", "Email", "$session_name Emailed modified event $title to $contact_name email $contact_email", $client, $event_id);
|
||||
|
||||
Reference in New Issue
Block a user