From 3c8a026b7c60ba7aeef48847f33b9a40afd63f35 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 27 Oct 2023 13:05:29 -0400 Subject: [PATCH] Fixed Cron mail queue and email parser missing ' --- cron_mail_queue.php | 2 +- cron_ticket_email_parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cron_mail_queue.php b/cron_mail_queue.php index 29b46ede..e685ffa6 100644 --- a/cron_mail_queue.php +++ b/cron_mail_queue.php @@ -20,7 +20,7 @@ if (file_exists($lock_file_path)) { unlink($lock_file_path); mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Mail-Queue', log_action = 'Delete', log_description = 'Cron Mail Queuer detected a lock file was present but was over 10 minutes old so it removed it.'"); } else { - mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Mail-Queue', log_action = 'Locked', log_description = 'Cron Mail Queuer attempted to execute but was already executing so instead it terminated."); + mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Mail-Queue', log_action = 'Locked', log_description = 'Cron Mail Queuer attempted to execute but was already executing so instead it terminated.'"); exit("Script is already running. Exiting."); } } diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index ecbdc7f2..6b538b28 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -35,7 +35,7 @@ if (file_exists($lock_file_path)) { unlink($lock_file_path); mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Delete', log_description = 'Cron Email Parser detected a lock file was present but was over 10 minutes old so it removed it'"); } else { - mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Locked', log_description = 'Cron Email Parser attempted to execute but was already executing, so instead it terminated."); + mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Cron-Email-Parser', log_action = 'Locked', log_description = 'Cron Email Parser attempted to execute but was already executing, so instead it terminated.'"); exit("Script is already running. Exiting."); } }