diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php
index 341c0b3afb..5f03d1851e 100644
--- a/pandora_console/include/functions_api.php
+++ b/pandora_console/include/functions_api.php
@@ -8846,7 +8846,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
$graph_image_file_encoded = false;
// Get the src of the html item
- if (preg_match("//", $graph_html, $matches)) {
+ if (preg_match("/