From 20a24b6ec63e0118c52ccd9c78231f6f028be22c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 16 Nov 2024 16:33:23 -0500 Subject: [PATCH] Fix PHP error on login check if Array last_visited is set --- cron_ticket_email_parser.php | 3 +++ login.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index 6001704e..0c4f3339 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -546,6 +546,9 @@ unlink($lock_file_path); // DEBUG echo "\nLock File Path: $lock_file_path\n"; +if (file_exists($lock_file_path)) { + echo "\nLock is present\n\n"; +} echo "Processed Emails into tickets: $processed_count\n"; echo "Unprocessed Emails: $unprocessed_count\n"; diff --git a/login.php b/login.php index 41f9824d..b37b65e7 100644 --- a/login.php +++ b/login.php @@ -221,7 +221,7 @@ if (isset($_POST['login'])) { //} } - if ($_GET['last_visited']) { + if (isset($_GET['last_visited'])) { header("Location: ".$_SERVER["REQUEST_SCHEME"] . "://" . $config_base_url . base64_decode($_GET['last_visited']) ); } else { header("Location: $config_start_page");