diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3f62745d49..fc0101f0e1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-12-08 Miguel de Dios + + * operation/events/events.php: fix notice undefined var message. + 2009-12-08 Miguel de Dios * include/functions_agents.php, operation/agentes/tactical.php: fix notice diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index eee6ff6932..0526ed70d9 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -264,40 +264,6 @@ echo ''; //Agent search echo "".__('Agent search').""; -//$sql = "SELECT DISTINCT(id_agente) AS id_agent FROM tevento WHERE 1=1 ".$sql_post; -//$result = get_db_all_rows_sql ($sql); -// -//if ($result === false) -// $result = array(); -// -//$agents = array (); -//$agents[-1] = __('All'); -// -//if (is_user_admin ($config["id_user"])) { -// $agents[0] = __('System'); -//} - - -//foreach ($result as $id_row) { -// $name_for_combo = ""; -// if ($id_row["id_agent"] > 0) -// $name_for_combo = mb_substr (get_agent_name ($id_row["id_agent"], "lower"),0,20); -// -// if ($name_for_combo != "") -// $agents[$id_row["id_agent"]] = $name_for_combo; -//} - - - -foreach ($result as $id_row) { - $name_for_combo = ""; - if ($id_row["id_agent"] > 0) - $name_for_combo = mb_substr (get_agent_name ($id_row["id_agent"], "lower"),0,20); - - if ($name_for_combo != "") - $agents[$id_row["id_agent"]] = $name_for_combo; -} - print_input_text_extended ('id_agent', $text_agent, 'text_id_agent', '', 30, 100, false, '', array('style' => 'background: url(images/lightning.png) no-repeat right;')) . ' ' . __("Type at least two characters to search") . '';