mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added disabled option to get ggroup agents function
This commit is contained in:
parent
e04d3186f2
commit
1dae698333
@ -853,12 +853,14 @@ function agents_get_group_agents ($id_group = 0, $search = false,
|
||||
//No added search. Show both disabled and non-disabled
|
||||
}
|
||||
else if (is_array ($search)) {
|
||||
if (!$search['all_agents']) {
|
||||
$filter['disabled'] = 0;
|
||||
if (isset ($search["disabled"])) {
|
||||
$filter['disabled'] = (int) $search["disabled"];
|
||||
|
||||
unset ($search["disabled"]);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset ($search["string"])) {
|
||||
$string = io_safe_input ($search["string"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user