FIX cron script disabled if module disabled
This commit is contained in:
parent
7065d16d85
commit
01f76d0e08
@ -75,6 +75,13 @@ $now=dol_now();
|
|||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." ***** userlogin=" . $userlogin . " ***** " . $now . " *****\n";
|
print "***** ".$script_file." (".$version.") pid=".dol_getmypid()." ***** userlogin=" . $userlogin . " ***** " . $now . " *****\n";
|
||||||
|
|
||||||
|
// Check module cron is activated
|
||||||
|
if (empty($conf->cron->enabled))
|
||||||
|
{
|
||||||
|
print "Error: module Scheduled jobs (cron) not activated\n";
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
// Check security key
|
// Check security key
|
||||||
if ($key != $conf->global->CRON_KEY)
|
if ($key != $conf->global->CRON_KEY)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user