Skip to content
Snippets Groups Projects
Commit a52adcad authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: change the condition

parent c9c375f3
No related branches found
No related tags found
No related merge requests found
......@@ -972,7 +972,7 @@ class Cronjob extends CommonObject
$result = call_user_func_array(array($object, $this->methodename), $params_arr);
}
if ($result===false || $result < 0)
if ($result !== true || $result != 0)
{
$langs->load("errors");
dol_syslog(get_class($this)."::run_jobs END result=".$result." error=".$object->error, LOG_ERR);
......@@ -1021,7 +1021,7 @@ class Cronjob extends CommonObject
$result = call_user_func_array($this->methodename, $params_arr);
}
if ($result === false || $result < 0)
if ($result !== true || $result != 0)
{
$langs->load("errors");
dol_syslog(get_class($this)."::run_jobs result=".$result, LOG_ERR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment