| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | * @return mixed The retrieved value after applying sanitization if needed. |
| 39 | 39 | */ |
| 40 | 40 | public static function get( $key, $default_name = null, bool $strict = false ) { |
| 41 | 41 | $value = defender_get_data_from_request( $key, 'g' ) ?? $default_name; |
| 42 | - if ( true === $strict && empty( $value ) ) { | |
| 42 | + if ( true === $strict && in_array( $value, array( null, '', array() ), true ) ) { | |
| 43 | 43 | $value = $default_name; |
| 44 | 44 | } |
| 45 | 45 | if ( is_array( $value ) ) { |
| 46 | 46 | $value = defender_sanitize_data( $value ); |