mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Refactoring: Use isset() with multiple parameters (#978)
This commit is contained in:
parent
1af9cfbbb9
commit
de2627341d
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ function set_var(&$result, $var, $type, $multibyte = false, $strip = true)
|
|||
function request_var($var_name, $default, $multibyte = false, $cookie = false)
|
||||
{
|
||||
if (!$cookie && isset($_COOKIE[$var_name])) {
|
||||
if (!isset($_GET[$var_name]) && !isset($_POST[$var_name])) {
|
||||
if (!isset($_GET[$var_name], $_POST[$var_name])) {
|
||||
return (is_array($default)) ? [] : $default;
|
||||
}
|
||||
$_REQUEST[$var_name] = $_POST[$var_name] ?? $_GET[$var_name];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue