From c64f05dc17bf8af6cfef8d8a28d54a2ada6354d6 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Wed, 7 Apr 2021 20:31:24 +0200 Subject: [PATCH] minor fix while empty search condition --- pandora_console/godmode/groups/group_list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }