mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
according to phpstan: isset is not required here
This commit is contained in:
parent
bd86454fea
commit
cc3e66cacb
@ -59,28 +59,21 @@ define('ACTION', $action);
|
||||
$errors = [];
|
||||
|
||||
// trim values we receive
|
||||
if(isset($_POST))
|
||||
{
|
||||
foreach($_POST as $var => $value) {
|
||||
if(is_string($value)) {
|
||||
$_POST[$var] = trim($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($_GET))
|
||||
{
|
||||
|
||||
foreach($_GET as $var => $value) {
|
||||
if(is_string($value))
|
||||
$_GET[$var] = trim($value);
|
||||
}
|
||||
}
|
||||
if(isset($_REQUEST))
|
||||
{
|
||||
|
||||
foreach($_REQUEST as $var => $value) {
|
||||
if(is_string($value))
|
||||
$_REQUEST[$var] = trim($value);
|
||||
}
|
||||
}
|
||||
|
||||
// load otserv config file
|
||||
$config_lua_reload = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user