From b516e2a894f19f2011e69525e0592ab5a8aefa7f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 22 May 2015 12:13:22 +0200 Subject: [PATCH] Fixed problems with not variable initialized, tiquet: #2238 (cherry picked from commit 50044050e1e7e16c848fb2c6585ef36958d465e3) --- .../godmode/reporting/graph_builder.graph_editor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ""; echo ""; - echo ""; + echo ""; html_print_input_text ('weight', $weight_array[$a], '', 20, 10, false, false); html_print_submit_button ('Ok', 'btn', false, '', false); echo ""; @@ -106,7 +106,7 @@ if(count($module_array) > 0){ echo "
"; echo ""; echo ""; - echo "".html_print_image('images/cross.png', true, array ('title' => __('Delete'))).""; + echo "".html_print_image('images/cross.png', true, array ('title' => __('Delete'))).""; echo ""; } @@ -116,7 +116,7 @@ if(count($module_array) > 0){ //Configuration form echo ''; -echo "
"; +echo ""; echo ""; echo "";