mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed visual bug in agent acccess rate from treview
This commit is contained in:
parent
e3803ac934
commit
1c8a80923d
@ -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);
|
||||
}
|
||||
|
||||
return $imgbase64;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user