forked from Wavyzz/dolibarr
Fix cronjob.class.php
This commit is contained in:
@@ -1295,11 +1295,10 @@ class Cronjob extends CommonObject
|
||||
} else {
|
||||
$result = call_user_func_array(array($object, $this->methodename), $params_arr);
|
||||
}
|
||||
|
||||
$errmsg = '';
|
||||
if ($result === false || (!is_bool($result) && $result != 0)) {
|
||||
$langs->load("errors");
|
||||
|
||||
$errmsg = '';
|
||||
if (!is_array($object->errors) || !in_array($object->error, $object->errors)) {
|
||||
$errmsg .= $object->error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user