Skip to content
Snippets Groups Projects
Commit 039039bb authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

FIX #3798 #2519 Cron jobs would never be executed

parent cfd01b60
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ if (is_array($object->lines) && (count($object->lines)>0))
dol_syslog("cron_run_jobs.php fetch cronjobid: ".$line->id, LOG_WARNING);
//If date_next_jobs is less of current dat, execute the program, and store the execution time of the next execution in database
if ((($line->datenextrun <= $now) && $line->dateend < $now)
if ((($line->datenextrun <= $now) && $line->dateend >= $now)
|| ((empty($line->datenextrun)) && (empty($line->dateend))))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment