1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-13 00:56:44 +00:00
This commit is contained in:
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; return $res;
} }
if ($msg['jobs'] !== null) {
$res['jobs'] = array_reverse($msg['jobs']); $res['jobs'] = array_reverse($msg['jobs']);
} else {
$res['jobs'] = [];
}
for ($i = 0; $i < sizeof($res['jobs']); $i++) { for ($i = 0; $i < sizeof($res['jobs']); $i++) {
$res['jobs'][$i]['tasks'] = json_encode($res['jobs'][$i]['tasks']); $res['jobs'][$i]['tasks'] = json_encode($res['jobs'][$i]['tasks']);
if ($res['jobs'][$i]['run_before'] === 0) { if ($res['jobs'][$i]['run_before'] === 0) {