Merge pull request #21350 from FHenry/15_fix_search_user

fix: 15 fix search user
This commit is contained in:
Laurent Destailleur 2022-06-22 18:23:59 +02:00 committed by GitHub
commit e73bd1bf1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -682,7 +682,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
// - posted value not empty, or
// - if posted value is empty and a default value exists that is not empty (it means we did a filter to an empty value when default was not).
if ($out != '') { // $out = '0' or 'abc', it is a search criteria to keep
if ($out != '' && isset($user)) {// $out = '0' or 'abc', it is a search criteria to keep
$user->lastsearch_values_tmp[$relativepathstring][$paramname] = $out;
}
}