Fixed visual bug in agent acccess rate from treview

This commit is contained in:
Manuel Montes 2020-05-26 13:40:59 +02:00
parent e3803ac934
commit 1c8a80923d
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;
}
}