From 9544da9b707874403659c16b3ad238ceec7be5b3 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 22 Dec 2009 17:13:14 +0000 Subject: [PATCH] 2009-12-22 Miguel de Dios * include/functions_custom_graphs.php: fix the name of custom graphs in the config select box in widget. Fixes: 2918740 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_custom_graphs.php | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8111b1b1ba..b6e67a92aa 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-12-22 Miguel de Dios + + * include/functions_custom_graphs.php: fix the name of custom graphs in the + config select box in widget. + Fixes: 2918740 + 2009-12-22 Miguel de Dios * include/config_process.php, include/functions_db.php: fix alert message diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php index 298550819a..39ffe3cebc 100644 --- a/pandora_console/include/functions_custom_graphs.php +++ b/pandora_console/include/functions_custom_graphs.php @@ -58,12 +58,11 @@ function get_user_custom_graphs ($id_user = 0, $only_names = false) { } else { $graphs[$graph['id_graph']] = $graph; + $graphsCount = get_db_value_sql("SELECT COUNT(id_gs) FROM tgraph_source WHERE id_graph = " . $graph['id_graph']); + $graphs[$graph['id_graph']]['graphs_count'] = $graphsCount; } - - $graphsCount = get_db_value_sql("SELECT COUNT(id_gs) FROM tgraph_source WHERE id_graph = " . $graph['id_graph']); - $graphs[$graph['id_graph']]['graphs_count'] = $graphsCount; } - + return $graphs; }