Skip to content

Commit

Permalink
Fix includes/admin/class-param.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx committed Jan 25, 2023
1 parent 15cbf21 commit d996c4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/admin/class-param.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Param {
*
* @return mixed
*/
public static function get( $id, $default = false, $filter = FILTER_DEFAULT, $flag = '' ) {
public static function get( $id, $default = false, $filter = FILTER_DEFAULT, $flag = 0 ) {
return filter_has_var( INPUT_GET, $id ) ? filter_input( INPUT_GET, $id, $filter, $flag ) : $default;
}

Expand All @@ -38,7 +38,7 @@ public static function get( $id, $default = false, $filter = FILTER_DEFAULT, $fl
*
* @return mixed
*/
public static function post( $id, $default = false, $filter = FILTER_DEFAULT, $flag = '' ) {
public static function post( $id, $default = false, $filter = FILTER_DEFAULT, $flag = 0 ) {
return filter_has_var( INPUT_POST, $id ) ? filter_input( INPUT_POST, $id, $filter, $flag ) : $default;
}

Expand All @@ -52,7 +52,7 @@ public static function post( $id, $default = false, $filter = FILTER_DEFAULT, $f
*
* @return mixed
*/
public static function request( $id, $default = false, $filter = FILTER_DEFAULT, $flag = '' ) {
public static function request( $id, $default = false, $filter = FILTER_DEFAULT, $flag = 0 ) {
return isset( $_REQUEST[ $id ] ) ? filter_var( $_REQUEST[ $id ], $filter, $flag ) : $default;
}

Expand All @@ -66,7 +66,7 @@ public static function request( $id, $default = false, $filter = FILTER_DEFAULT,
*
* @return mixed
*/
public static function server( $id, $default = false, $filter = FILTER_DEFAULT, $flag = '' ) {
public static function server( $id, $default = false, $filter = FILTER_DEFAULT, $flag = 0 ) {
return isset( $_SERVER[ $id ] ) ? filter_var( $_SERVER[ $id ], $filter, $flag ) : $default;
}
}

0 comments on commit d996c4f

Please sign in to comment.