From 3adb9909700b30c3251e7d5ff9c193cb840070ea Mon Sep 17 00:00:00 2001 From: danielmaya Date: Wed, 29 Nov 2017 18:11:40 +0100 Subject: [PATCH] Fixed redeclare function --- pandora_console/include/functions_agents.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 63a264fee3..9c38157300 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1317,24 +1317,6 @@ function agents_get_agent_id ($agent_name, $io_safe_input = false) { return (int) db_get_value ('id_agente', 'tagente', 'nombre', $agent_name); } -/** - * Get agents id from an agent alias. - * - * @param string $agent_alias Agent alias to get its id. - * @param boolean $io_safe_input If it is true transform to safe string, by default false. - * - * @return int Id from the agent of the given alias. - */ -function agents_get_agent_id_by_alias ($alias, $io_safe_input = false) { - if ($io_safe_input) { - $alias = io_safe_input($alias); - } - $sql = sprintf("SELECT tagente.id_agente FROM tagente WHERE alias LIKE '%s' ",$alias); - $agent_id = db_get_all_rows_sql($sql); - - return $agent_id; -} - /** * Get name of an agent. *