#10792 fixed error 500 in agent status list
This commit is contained in:
parent
cbbddd1ac6
commit
2683f9e6dc
|
@ -375,10 +375,12 @@ $table->data[1][0] = html_print_label_input_block(
|
||||||
html_print_select($fields, 'os', $os, '', 'All', 0, true)
|
html_print_select($fields, 'os', $os, '', 'All', 0, true)
|
||||||
);
|
);
|
||||||
|
|
||||||
$pre_fields = policies_get_policies(false, ['id', 'name']);
|
if (function_exists('policies_get_policies') === true) {
|
||||||
$fields = [];
|
$pre_fields = policies_get_policies(false, ['id', 'name']);
|
||||||
foreach ($pre_fields as $value) {
|
$fields = [];
|
||||||
$fields[$value['id']] = $value['name'];
|
foreach ($pre_fields as $value) {
|
||||||
|
$fields[$value['id']] = $value['name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[1][1] = html_print_label_input_block(
|
$table->data[1][1] = html_print_label_input_block(
|
||||||
|
|
Loading…
Reference in New Issue