fix: remove warning GETPOST
This commit is contained in:
parent
8b06d68cc0
commit
9d20e602d1
@ -682,7 +682,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
|
|||||||
// - posted value not empty, or
|
// - 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 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;
|
$user->lastsearch_values_tmp[$relativepathstring][$paramname] = $out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user