fix custom graph sql pandora_enterprise#10196

This commit is contained in:
daniel 2023-01-19 17:50:27 +01:00
parent d1fb27f5c4
commit 3ef4482af2
2 changed files with 7 additions and 6 deletions

View File

@ -3489,8 +3489,9 @@ function graph_custom_sql_graph(
$data_result = [];
}
$data = [];
$labels = [];
$data_bar = [];
$labels_pie = [];
$data_pie = [];
$count = 0;
$other = 0;
foreach ($data_result as $data_item) {

View File

@ -154,14 +154,14 @@ function progressbar(
/**
* Draw vertical bars graph.
*
* @param array $chart_data Data chart.
* @param array $params Params draw chart.
* @param integer $ttl Pdf option.
* @param array|null $chart_data Data chart.
* @param array $params Params draw chart.
* @param integer $ttl Pdf option.
*
* @return mixed
*/
function vbar_graph(
array $chart_data,
array|null $chart_data,
array $options
) {
if (empty($chart_data) === true) {