Agent inventory fix graph

This commit is contained in:
Jonathan 2023-03-09 16:28:08 +01:00
parent 13261a1298
commit 7b3ed98d4b
2 changed files with 5 additions and 1 deletions

View File

@ -2618,6 +2618,10 @@ function reporting_agents_inventory($report, $content)
$es_agents_inventory_display_options = []; $es_agents_inventory_display_options = [];
} }
if ($es_agent_custom_fields === '') {
$es_agent_custom_fields = [];
}
$custom_field_sql = ''; $custom_field_sql = '';
$search_sql = ''; $search_sql = '';

View File

@ -728,7 +728,7 @@ function ui_print_group_icon($id_group, $return=false, $path='', $style='', $lin
} }
$output .= html_print_image( $output .= html_print_image(
'images/'.$icon, 'images/'.$icon.'.svg',
true, true,
[ [
'style' => $style, 'style' => $style,