diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 903fb2e515..9302c4ce94 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -2439,7 +2439,13 @@ function graphic_agentaccess( if ($return === true) { return vbar_graph($data_array, $options, 1); } else { - echo vbar_graph($data_array, $options, 1); + $options['generals']['pdf']['width'] = 350; + $options['generals']['pdf']['height'] = 125; + + $imgbase64 = ''; + return $imgbase64; } } diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 3217a544bf..32688a25ea 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -123,11 +123,11 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals $row['data'] = $module_group; $table->data['module_group'] = $row; - // Description + // Description. $row = []; $row['title'] = __('Description'); $row['data'] = ui_print_truncate_text( - $module['descripcion'];, + $module['descripcion'], 'description', true, true, @@ -761,21 +761,25 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) } } - // End of table advanced + // End of table advanced. $table_advanced = html_print_table($table, true); $table_advanced .= '
'; ui_toggle($table_advanced, __('Advanced information')); if ($config['agentaccess']) { - $access_graph = '
'; + $access_graph = '
'; $access_graph .= graphic_agentaccess( $id_agente, SECONDS_1DAY, - true + false ); $access_graph .= '
'; - ui_toggle($access_graph, __('Agent access rate (24h)')); + + ui_toggle( + $access_graph, + __('Agent access rate (24h)') + ); } $events_graph = '
';