From 91cc41ee5dcc68d6ed1cc15cbe020624f4b07416 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Wed, 14 Feb 2024 07:48:34 -0500 Subject: [PATCH] fix for Search of users in Admin https://github.com/XOOPS/XoopsCore25/issues/1456 --- htdocs/modules/system/admin/users/main.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/modules/system/admin/users/main.php b/htdocs/modules/system/admin/users/main.php index 3b918b27e..54a6013c5 100644 --- a/htdocs/modules/system/admin/users/main.php +++ b/htdocs/modules/system/admin/users/main.php @@ -474,7 +474,7 @@ $requete_search = '

See search request:

'; $requete_pagenav = ''; - $user_uname = Request::getString('username'); + $user_uname = Request::getString('user_uname'); $user_uname_match = Request::getInt('user_uname_match', 0); $criteria = new CriteriaCompo(); @@ -497,7 +497,7 @@ $requete_pagenav .= '&user_uname=' . htmlspecialchars($user_uname, ENT_QUOTES | ENT_HTML5) . '&user_uname_match=' . htmlspecialchars($user_uname_match, ENT_QUOTES | ENT_HTML5); $requete_search .= 'uname : ' . $user_uname . ' et user_uname_match=' . $user_uname_match . '
'; } - $user_name = Request::getString('username'); + $user_name = Request::getString('user_name'); $user_name_match = Request::getInt('user_name_match', 0); if (!empty($user_name)) { $match = Request::getString('user_name_match', XOOPS_MATCH_START); @@ -768,7 +768,8 @@ $start = Request::getInt('start'); $groups = array(); - if (Request::hasVar('selgroups')) { + $selgroups = array(); + if (Request::hasVar('selgroups') && $_REQUEST['selgroups'] != '') { $selgroups = Request::getArray('selgroups', array()); // Default to an empty array if 'selgroups' is not set if (empty($selgroups)) { // If 'selgroups' is an empty array, try to get it as an integer