diff --git a/pandora_console/godmode/groups/group_list.php b/pandora_console/godmode/groups/group_list.php index 74ea0af8fe..bbc84ce00b 100644 --- a/pandora_console/godmode/groups/group_list.php +++ b/pandora_console/godmode/groups/group_list.php @@ -177,7 +177,9 @@ if (is_ajax() === true) { $agents_aux = []; foreach ($agents as $key => $value) { - if (preg_match('/'.$search.'/', io_safe_output($value)) === true) { + if (empty($search) === true) { + $agents_aux[$key] = $value; + } else if (preg_match('/'.$search.'/', io_safe_output($value)) === true) { $agents_aux[$key] = $value; } }