Merge branch 'ent-5772-tree-view-access-rate-24-h-falla' into 'develop'

Ent 5772 tree view access rate 24 h falla

See merge request artica/pandorafms!3240
This commit is contained in:
Alejandro Fraguas 2020-06-08 09:42:03 +02:00
commit e6a0406cd5
1 changed files with 7 additions and 3 deletions

View File

@ -2441,10 +2441,14 @@ function graphic_agentaccess(
} else {
$options['generals']['pdf']['width'] = 350;
$options['generals']['pdf']['height'] = 125;
if (!empty($data_array)) {
$imgbase64 = '<img src="data:image/jpg;base64,';
$imgbase64 .= vbar_graph($data_array, $options, 2);
$imgbase64 .= '" />';
} else {
$imgbase64 .= vbar_graph($data_array, $options, 2);
}
$imgbase64 = '<img src="data:image/jpg;base64,';
$imgbase64 .= vbar_graph($data_array, $options, 2);
$imgbase64 .= '" />';
return $imgbase64;
}
}