From 2ae11577cee1c4d73da892406be480eae11e9cb2 Mon Sep 17 00:00:00 2001 From: Manuel Montes Date: Tue, 26 May 2020 14:42:06 +0200 Subject: [PATCH] Added case insensitive in agent search --- pandora_console/godmode/users/user_list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/users/user_list.php b/pandora_console/godmode/users/user_list.php index 8fb461a355..24f2a38a65 100644 --- a/pandora_console/godmode/users/user_list.php +++ b/pandora_console/godmode/users/user_list.php @@ -367,11 +367,11 @@ if ($search) { $found = false; if (!empty($filter_search)) { - if (preg_match('/.*'.$filter_search.'.*/', $user_info['fullname']) != 0) { + if (preg_match('/.*'.strtolower($filter_search).'.*/', strtolower($user_info['fullname'])) != 0) { $found = true; } - if (preg_match('/.*'.$filter_search.'.*/', $user_info['id_user']) != 0) { + if (preg_match('/.*'.strtolower($filter_search).'.*/', strtolower($user_info['id_user'])) != 0) { $found = true; }