mirror of https://github.com/itflow-org/itflow
Check to see if args is set
This commit is contained in:
parent
f7ee489293
commit
3f2f663b7b
2
cron.php
2
cron.php
|
|
@ -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..");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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..");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue