diff --git a/pandora_console/godmode/reporting/graph_builder.graph_editor.php b/pandora_console/godmode/reporting/graph_builder.graph_editor.php index d41a0c778c..b439b09c8a 100644 --- a/pandora_console/godmode/reporting/graph_builder.graph_editor.php +++ b/pandora_console/godmode/reporting/graph_builder.graph_editor.php @@ -46,7 +46,7 @@ if ($editGraph) { WHERE t2.id_agente_modulo = t1.id_agent_module)) AS agent_name FROM tgraph_source AS t1 - WHERE t1.id_graph = " . $id); + WHERE t1.id_graph = " . $id_graph); $module_array = array(); $weight_array = array(); $agent_array = array(); @@ -62,7 +62,7 @@ if ($editGraph) { $agent_array[] = $graphRow['agent_name']; } - $graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id); + $graphInTgraph = db_get_row_sql("SELECT * FROM tgraph WHERE id_graph = " . $id_graph); $stacked = $graphInTgraph['stacked']; $period = $graphInTgraph['period']; $width = $graphInTgraph['width']; @@ -98,7 +98,7 @@ if(count($module_array) > 0){ echo "