2009-09-16 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_db.php: cleanup the source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1948 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-09-16 09:11:25 +00:00
parent a416c8fe49
commit 61d556457f
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: cleanup the source code.
2009-09-16 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/events.php: cleanup the source code and add many

View File

@ -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';
}