From 2af21ff6d995cddb1a08aaf30fdb3fe8e3e71a9f Mon Sep 17 00:00:00 2001
From: jsatoh <junichi@rworks.jp>
Date: Tue, 26 Oct 2010 02:04:22 +0000
Subject: [PATCH] 2010-10-26  Junichi Satoh  <junichi@rworks.jp>

	* godmode/db/db_info.php: Fixed uninitialized variable is used.
	Fixed "get database information as text" does not work.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_console/ChangeLog              | 5 +++++
 pandora_console/godmode/db/db_info.php | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index efd8457a7b..26638405b6 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-26  Junichi Satoh  <junichi@rworks.jp>
+
+	* godmode/db/db_info.php: Fixed uninitialized variable is used.
+	Fixed "get database information as text" does not work.
+
 2010-10-25  Miguel de Dios  <miguel.dedios@artica.es>
 	
 	* include/javascript/tiny_mce/plugins/media/editor_plugin_src.js,
diff --git a/pandora_console/godmode/db/db_info.php b/pandora_console/godmode/db/db_info.php
index 272557bb8e..c7f53af328 100644
--- a/pandora_console/godmode/db/db_info.php
+++ b/pandora_console/godmode/db/db_info.php
@@ -44,6 +44,7 @@ if (! give_acl ($config['id_user'], 0, "DM")) {
 
 
 if ($config['flash_charts']) {
+	$id_agente=0;
 	$width=600;
 	$height=400;
 	echo grafico_db_agentes_purge ($id_agente, $width, $height);
@@ -82,7 +83,7 @@ $table->head[0] = __('Agent name');
 $table->head[1] = __('Assigned modules');
 $table->head[2] = __('Total data');
 
-$agents = get_group_agents (1);
+$agents = get_group_agents (0);
 
 $count = get_agent_modules_data_count (array_keys ($agents));