Update cronjob.class.php
This commit is contained in:
parent
5453f0c628
commit
6a2d7d1523
1 changed files with 2 additions and 2 deletions
|
|
@ -1269,13 +1269,13 @@ class Cronjob extends CommonObject
|
|||
dol_syslog(get_class($this)."::run_jobs END result=".$result." error=".$errmsg, LOG_ERR);
|
||||
|
||||
$this->error = $errmsg;
|
||||
$this->lastoutput = dol_substr(!empty($object->output) ? $object->output."\n" : "").$errmsg, 0, $this::MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD, 'UTF-8', 1);
|
||||
$this->lastoutput = dol_substr((empty($object->output) ? "" : $object->output."\n").$errmsg, 0, $this::MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD, 'UTF-8', 1);
|
||||
$this->lastresult = is_numeric($result) ? $result : -1;
|
||||
$retval = $this->lastresult;
|
||||
$error++;
|
||||
} else {
|
||||
dol_syslog(get_class($this)."::run_jobs END");
|
||||
$this->lastoutput = dol_substr(!empty($object->output) ? $object->output."\n" : "").$errmsg, 0, $this::MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD, 'UTF-8', 1);
|
||||
$this->lastoutput = dol_substr((empty($object->output) ? "" : $object->output."\n").$errmsg, 0, $this::MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD, 'UTF-8', 1);
|
||||
$this->lastresult = var_export($result, true);
|
||||
$retval = $this->lastresult;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue