Fix error on first launch of a cron job
This commit is contained in:
parent
8227c155a0
commit
1c56957866
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue