From aab2bdcdda0a9ea10d0fbe3c06eac1870c96a1a9 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 15 Jul 2009 11:51:52 +0000 Subject: [PATCH] 2009-07-15 Miguel de Dios * godmode/agentes/manage_config_remote.php: fix name of colums in query. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ .../godmode/agentes/manage_config_remote.php | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1d0bb1f6d0..b1717c8e76 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-07-15 Miguel de Dios + + * godmode/agentes/manage_config_remote.php: fix name of colums in query. + 2009-07-09 Manuel Arostegui * pandora_console.spec: Removed unnecessary dependency. diff --git a/pandora_console/godmode/agentes/manage_config_remote.php b/pandora_console/godmode/agentes/manage_config_remote.php index 3914a7f1a1..764aa3117a 100644 --- a/pandora_console/godmode/agentes/manage_config_remote.php +++ b/pandora_console/godmode/agentes/manage_config_remote.php @@ -110,14 +110,15 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) { echo ''. __('Source agent').''; print_help_icon ('duplicateconfig'); echo '

'; - + // Show combo with SOURCE agents if ($id_group > 1) $sql1 = "SELECT * FROM tagente WHERE id_grupo = $id_group ORDER BY nombre "; else - $sql1 = "SELECT * FROM tagente WHERE id_group IN ($grouplist) ORDER BY nombre"; - echo ''; + + $result=mysql_query($sql1); while ($row=mysql_fetch_array($result)){ if (give_acl ($config["id_user"], $row["id_grupo"], "AR")){ $source = $config["remote_config"]."/". md5($row["nombre"]).".conf"; @@ -135,7 +136,7 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) { if ($id_group > 1) $sql1 = "SELECT * FROM tagente WHERE id_grupo = $id_group ORDER BY nombre "; else - $sql1 = "SELECT * FROM tagente WHERE id_group IN ($grouplist) ORDER BY nombre"; + $sql1 = "SELECT * FROM tagente WHERE id_grupo IN ($grouplist) ORDER BY nombre"; $result=mysql_query($sql1); while ($row=mysql_fetch_array($result)){ @@ -152,4 +153,4 @@ if ((isset($_GET["operacion"])) AND ($update_group == -1) ) { echo ''; } -?> +?> \ No newline at end of file