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,27 +59,20 @@ define('ACTION', $action);
|
|||||||
$errors = [];
|
$errors = [];
|
||||||
|
|
||||||
// trim values we receive
|
// trim values we receive
|
||||||
if(isset($_POST))
|
foreach($_POST as $var => $value) {
|
||||||
{
|
if(is_string($value)) {
|
||||||
foreach($_POST as $var => $value) {
|
$_POST[$var] = trim($value);
|
||||||
if(is_string($value)) {
|
|
||||||
$_POST[$var] = trim($value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isset($_GET))
|
|
||||||
{
|
foreach($_GET as $var => $value) {
|
||||||
foreach($_GET as $var => $value) {
|
if(is_string($value))
|
||||||
if(is_string($value))
|
$_GET[$var] = trim($value);
|
||||||
$_GET[$var] = trim($value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(isset($_REQUEST))
|
|
||||||
{
|
foreach($_REQUEST as $var => $value) {
|
||||||
foreach($_REQUEST as $var => $value) {
|
if(is_string($value))
|
||||||
if(is_string($value))
|
$_REQUEST[$var] = trim($value);
|
||||||
$_REQUEST[$var] = trim($value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load otserv config file
|
// load otserv config file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user