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_result = [];
} }
$data = []; $data_bar = [];
$labels = []; $labels_pie = [];
$data_pie = [];
$count = 0; $count = 0;
$other = 0; $other = 0;
foreach ($data_result as $data_item) { foreach ($data_result as $data_item) {

View File

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