From 039039bb0078007af2495f1655956afb51a4ac05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= <marcosgdf@gmail.com> Date: Mon, 28 Dec 2015 15:17:53 +0100 Subject: [PATCH] FIX #3798 #2519 Cron jobs would never be executed --- htdocs/public/cron/cron_run_jobs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/cron/cron_run_jobs.php b/htdocs/public/cron/cron_run_jobs.php index 022a7641cab..8da60838468 100644 --- a/htdocs/public/cron/cron_run_jobs.php +++ b/htdocs/public/cron/cron_run_jobs.php @@ -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)))) { -- GitLab