Skip to content

Commit

Permalink
FIX: PHP 8 warning on output of successful cronjob (#29922)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-dll authored Jun 8, 2024
1 parent 22dddb8 commit b0e825c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/cron/class/cronjob.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ public function run_jobs($userlogin)
$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"), 0, $this::MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD, 'UTF-8', 1);
$this->lastresult = var_export($result, true);
$retval = $this->lastresult;
}
Expand Down

0 comments on commit b0e825c

Please sign in to comment.