diff --git a/pandora_console/godmode/reporting/graph_builder.main.php b/pandora_console/godmode/reporting/graph_builder.main.php index 23cfc010c8..3b77ed932f 100644 --- a/pandora_console/godmode/reporting/graph_builder.main.php +++ b/pandora_console/godmode/reporting/graph_builder.main.php @@ -73,7 +73,7 @@ if (! check_acl($config['id_user'], 0, 'RW') exit; } -if ($edit_graph) { +if ($edit_graph === true) { $graphInTgraph = db_get_row_sql( 'SELECT * FROM tgraph WHERE id_graph = '.$id_graph ); @@ -113,18 +113,18 @@ if ($edit_graph) { // ----------------------- // CREATE/EDIT GRAPH FORM // ----------------------- -$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder'; -if ($edit_graph) { - $output = "
"; +$url = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1'; +if ($edit_graph === true) { + $output = ""; } else { - $output = ""; + $output = ""; } $output .= ""; $output .= ''; $output .= "'; $output .= "'; $output .= "
".__('Name').'