1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00
This commit is contained in:
Newnius 2020-07-09 21:38:06 +08:00
parent 491eafe99e
commit 258fbf48ba

View File

@ -116,7 +116,11 @@ function job_list(CRObject $rule)
return $res;
}
$res['jobs'] = array_reverse($msg['jobs']);
if ($msg['jobs'] !== null) {
$res['jobs'] = array_reverse($msg['jobs']);
} else {
$res['jobs'] = [];
}
for ($i = 0; $i < sizeof($res['jobs']); $i++) {
$res['jobs'][$i]['tasks'] = json_encode($res['jobs'][$i]['tasks']);
if ($res['jobs'][$i]['run_before'] === 0) {