From 6a37411c63c9dcb11e1e7c9b229c825b3f4949fa Mon Sep 17 00:00:00 2001 From: Esteban Sanchez Date: Mon, 23 Feb 2009 15:04:32 +0000 Subject: [PATCH] 2009-02-23 Esteban Sanchez * include/functions_html.php: Fixed id counter on print_select. * include/functions_db.php: Documentation style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_db.php | 2 -- pandora_console/include/functions_html.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 54dea1e7ab..b628d5f8e4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-02-23 Esteban Sanchez + + * include/functions_html.php: Fixed id counter on print_select. + + * include/functions_db.php: Documentation style correction. + 2009-02-23 Esteban Sanchez * godmode/reporting/map_builder.php: Use process_sql_update and diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 291ef54ecd..604461d232 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -264,9 +264,7 @@ function give_disabled_group ($id_group) { * Get all the agents within a group(s). For non-godmode usage get_user_groups should be used. * * @param mixed $id_group Group id or an array of ID's. If nothing is selected, it will select all - * * @param bool $disabled Add disabled agents to agents. Default: False. - * * @param string $case Which case to return the agentname as (lower, upper, none) * * @return array An array with all agents in the group or an empty array diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index cf5cf98937..947c1c20f3 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -44,7 +44,7 @@ function print_select ($fields, $name, $selected = '', $script = '', $nothing = //If duplicate names exist, it will start numbering. Otherwise it won't (for backwards compatibility) if (isset ($idcounter[$name])) { $idcounter[$name]++; - $name = $name.$idcounter; + $name = $name.$idcounter[$name]; } else { $idcounter[$name] = 0; }