Fix error on first launch of a cron job

This commit is contained in:
Laurent Destailleur 2023-12-09 21:15:32 +01:00
parent 8227c155a0
commit 1c56957866

View file

@ -738,6 +738,9 @@ class Cronjob extends CommonObject
if (empty($this->email_alert)) {
$this->email_alert = '';
}
if (empty($this->datenextrun)) {
$this->datenextrun = dol_now();
}
// Check parameters
// Put here code to add a control on parameters values