From a05d88d1843c64b78e5b710721a99300eb2570b1 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 27 Sep 2010 08:04:13 +0000 Subject: [PATCH] 2010-09-27 Sergio Martin * godmode/reporting/graph_builder.php: Fixed typo bug git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3300 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/godmode/reporting/graph_builder.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 {