diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f94274064d..c8639a5a1c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-09-27 Sergio Martin + + * godmode/reporting/graph_builder.php: Fixed typo bug + 2010-09-27 Sergio Martin * godmode/reporting/graph_builder.main.php: Set default diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index 9cc3cc4bf5..e0eb26ab0b 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -108,7 +108,7 @@ if ($update_graph) { $success = process_sql_update('tgraph', array('name' => $name, 'id_group' => $id_group, 'description' => $description, 'width' => $width, 'height' => $height, 'period' => $period, 'stacked' => $stacked, 'events' => $events), - array('id_graph' => $id)); + array('id_graph' => $id_graph)); } else { $success = false; } @@ -167,7 +167,7 @@ if($edit_graph) { $buttons[$active_tab]['active'] = true; - $graphInTgraph = get_db_row_sql("SELECT name FROM tgraph WHERE id_graph = " . $id); + $graphInTgraph = get_db_row_sql("SELECT name FROM tgraph WHERE id_graph = " . $id_graph); $name = $graphInTgraph['name']; } else {