FIX cron script disabled if module disabled

This commit is contained in:
Laurent Destailleur 2018-04-23 15:06:30 +02:00
parent e834eff049
commit 77d9ff033a

View File

@ -75,6 +75,13 @@ $now=dol_now();
@set_time_limit(0);
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
if ($key != $conf->global->CRON_KEY)
{