diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f7675ce673..feec1508d4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,6 +1,26 @@ +2009-05-11 Esteban Sánchez + + * operation/agentes/estado_agente.php: Sets a variable outside an if. + Fixes #2785018 + 2009-05-11 Evi Vanoost * operation/agentes/estado_agente.php: Fixed limits (again) + +2009-05-11 Esteban Sánchez + + * godmode/agentes/agent_manager.php: Show "None" if no server is assigned. + Fixes #2768723 + + * godmode/agentes/configurar_agente.php: Removed direct link to + farscap.artica.es server. Fixed group tab selection. + + * godmode/alerts/alert_list.php: Fixed a notice when there are no agents. + Fixes #2786519. + + * general/header.php: Fixed an error when updating agent configuration + which was showing all the config in the header. Should be improved for + other textarea fields. 2009-05-07 Esteban Sánchez diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 1c8292d96d..5bb10b6e76 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -91,6 +91,7 @@ if ($group_id > 1) { $agent_names = get_group_agents (array_keys ($user_group), $search_sql, "upper"); } +$num_agents = 0; if (!empty ($agent_names)) { $num_agents = get_db_sql (sprintf ("SELECT COUNT(*) FROM tagente WHERE id_agente IN (%s)", implode (",", array_keys ($agent_names)))); $agents = get_db_all_rows_sql (sprintf ("SELECT * FROM tagente WHERE id_agente IN (%s) ORDER BY nombre ASC LIMIT %d,%d", implode (",", array_keys ($agent_names)), (int) get_parameter ("offset"), $config["block_size"]));