minor fix

This commit is contained in:
fbsanchez 2021-03-05 11:18:47 +01:00
parent bcde9f940e
commit cfded31e1b
1 changed files with 1 additions and 1 deletions

View File

@ -13823,7 +13823,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4)
$graph_html = grafico_modulo_sparse($params);
if ($base64) {
if ((bool) $base64 === false) {
header('Content-type: text/html');
returnData('string', ['type' => 'string', 'data' => '<img src="data:image/jpeg;base64,'.$graph_html.'">']);
} else {