diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e1c00c4427..ccae7bf6c6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-09-16 Miguel de Dios + + * include/functions_db.php: cleanup the source code. + 2009-09-16 Miguel de Dios * operation/events/events.php: cleanup the source code and add many diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index f703834bf9..b1339745a1 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -342,7 +342,8 @@ function get_group_agents ($id_group = 0, $search = false, $case = "lower") { if ($search === true) { //No added search. Show both disabled and non-disabled - } elseif (is_array ($search)) { + } + elseif (is_array ($search)) { if (isset ($search["disabled"])) { $search_sql .= ' AND disabled = '.($search["disabled"] ? 1 : 0); //Bool, no cleanup necessary } else { @@ -366,7 +367,8 @@ function get_group_agents ($id_group = 0, $search = false, $case = "lower") { if (! empty ($search)) { $search_sql .= ' AND '.format_array_to_where_clause_sql ($search); } - } else { + } + else { $search_sql .= ' AND disabled = 0'; }