Skip to content

Commit

Permalink
Fix PHP undefined variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mc2contributor committed Jan 19, 2024
1 parent c863302 commit 376733e
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 @@ -1330,7 +1330,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 376733e

Please sign in to comment.