N°3234 - Notify on expiration not sending notifications

This commit is contained in:
acognet
2020-08-21 18:50:27 +02:00
parent d12e2e592a
commit 4618f12d8a

View File

@@ -223,8 +223,9 @@ function CronExec($oP, $aProcesses, $bVerbose, $bDebug=false)
} }
$oNow = new DateTime(); $oNow = new DateTime();
//don't recalculate next occurence if next_run_date is
if (($oTask->Get('status') != 'active') if (($oTask->Get('status') != 'active')
|| ($oTask->Get('next_run_date') > $oNow->format('Y-m-d H:i:s'))) || ($oTask->Get('next_run_date') > date('Y-m-d H:i:s',$iTimeLimit)))
{ {
if ($bVerbose) if ($bVerbose)
{ {