Merge branch 'ent-10196-erro-500-al-visualizar-sql-graph-en-informes' into 'develop'

fix custom graph sql pandora_enterprise#10196

See merge request artica/pandorafms!5434
This commit is contained in:
Rafael Ameijeiras 2023-01-20 07:16:47 +00:00
commit 1c86b74271
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) {