Fix cronjob.class.php
This commit is contained in:
parent
a001d48252
commit
e1e8e45a52
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue