diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 5038f05328..26abc0db54 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -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' => '']); } else {