Check to see if args is set

This commit is contained in:
johnnyq 2023-05-01 16:56:29 -04:00
parent f7ee489293
commit 3f2f663b7b
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ if ($config_enable_cron == 0) {
}
// Check Cron Key
if ($argv[1] !== $config_cron_key) {
if (isset($argv[1]) !== $config_cron_key) {
exit("Cron Key invalid -- Quitting..");
}

View File

@ -32,7 +32,7 @@ if ($config_ticket_email_parse == 0) {
$argv = $_SERVER['argv'];
// Check Cron Key
if ($argv[1] !== $config_cron_key) {
if (isset($argv[1]) !== $config_cron_key) {
exit("Cron Key invalid -- Quitting..");
}