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:
parent
a416c8fe49
commit
61d556457f
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue