FIX 12.0 - when the cronjob 'params' field is empty, the cron method is called with one empty string param instead of no params at all
This commit is contained in:
parent
823e399d8d
commit
f7228d96af
@ -1052,7 +1052,10 @@ class Cronjob extends CommonObject
|
||||
$object = new $this->objectname($this->db);
|
||||
if ($this->entity > 0) $object->entity = $this->entity; // We work on a dedicated entity
|
||||
|
||||
$params_arr = array();
|
||||
if (!empty($this->params) || $this->params === '0'){
|
||||
$params_arr = array_map('trim', explode(",", $this->params));
|
||||
}
|
||||
|
||||
if (!is_array($params_arr))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user