FIX #3798 #2519 Cron jobs would never be executed

This commit is contained in:
Marcos García de La Fuente
2015-12-28 15:17:53 +01:00
parent cfd01b6060
commit 039039bb00

View File

@@ -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))))
{