Skip to content

Commit

Permalink
fix for Search of users in Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Feb 14, 2024
1 parent 3383294 commit 91cc41e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions htdocs/modules/system/admin/users/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
$requete_search = '<br><br><strong>See search request: </strong><br><br>';
$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();
Expand All @@ -497,7 +497,7 @@
$requete_pagenav .= '&amp;user_uname=' . htmlspecialchars($user_uname, ENT_QUOTES | ENT_HTML5) . '&amp;user_uname_match=' . htmlspecialchars($user_uname_match, ENT_QUOTES | ENT_HTML5);
$requete_search .= 'uname : ' . $user_uname . ' et user_uname_match=' . $user_uname_match . '<br>';
}
$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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91cc41e

Please sign in to comment.