Merge pull request #15824 from frederic34/scheduledjobs
remove warnings
This commit is contained in:
commit
740cedeaac
@ -42,6 +42,9 @@ class box_scheduled_jobs extends ModeleBoxes
|
|||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string params
|
||||||
|
*/
|
||||||
public $param;
|
public $param;
|
||||||
|
|
||||||
public $info_box_head = array();
|
public $info_box_head = array();
|
||||||
@ -101,9 +104,11 @@ class box_scheduled_jobs extends ModeleBoxes
|
|||||||
|
|
||||||
if (dol_eval($objp->test, 1, 1)) {
|
if (dol_eval($objp->test, 1, 1)) {
|
||||||
$nextrun = $this->db->jdate($objp->datenextrun);
|
$nextrun = $this->db->jdate($objp->datenextrun);
|
||||||
if (empty($nextrun)) $nextrun = $this->db->jdate($objp->datestart);
|
if (empty($nextrun)) {
|
||||||
|
$nextrun = $this->db->jdate($objp->datestart);
|
||||||
|
}
|
||||||
|
|
||||||
if ($line == 0 || ($nextrun < $cronstatic->datenextrun && (empty($objp->nbrun) || empty($objp->maxrun) || $objp->nbrun < $obj->maxrun))) {
|
if ($line == 0 || ($nextrun < $cronstatic->datenextrun && (empty($objp->nbrun) || empty($objp->maxrun) || $objp->nbrun < $objp->maxrun))) {
|
||||||
$cronstatic->id = $objp->rowid;
|
$cronstatic->id = $objp->rowid;
|
||||||
$cronstatic->ref = $objp->rowid;
|
$cronstatic->ref = $objp->rowid;
|
||||||
$cronstatic->label = $langs->trans($objp->label);
|
$cronstatic->label = $langs->trans($objp->label);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user