diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php
index c62915c819..b9b92e78da 100644
--- a/pandora_console/include/functions_api.php
+++ b/pandora_console/include/functions_api.php
@@ -8890,29 +8890,55 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
'', false, false, true, time(), '', 0, 0, true, true,
ui_get_full_url(false) . '/', 1, false, '', false, true);
- $graph_image_file_encoded = false;
-
- // Get the src of the html item
- if (preg_match("/
'string', 'data' => $graph_image_file_encoded));
- }
+ $graph_image_file_encoded = false;
+ if (preg_match("/
'string', 'data' => '
'));
+ // To show only the base64 code, call returnData as:
+ // returnData('string', array('type' => 'string', 'data' => $graph_image_file_encoded));
+ }
}
?>