Skip to content

Commit

Permalink
php 8.1
Browse files Browse the repository at this point in the history
shutdown - filter_var(): Passing null to parameter #3 ($options) of type array|int is deprecated in /core/classes/input.php on 122
$options - cannot be null
  • Loading branch information
hotlabs authored and WanWizard committed Sep 30, 2021
1 parent 8214790 commit 3cc6df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function real_ip($default = '0.0.0.0', $exclude_reserved = false)
});

$ips = array_filter($ips, function($ip) use($exclude_reserved) {
return filter_var($ip, FILTER_VALIDATE_IP, $exclude_reserved ? FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE : null);
return filter_var($ip, FILTER_VALIDATE_IP, $exclude_reserved ? FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE : false);
});

if ($ips)
Expand Down

0 comments on commit 3cc6df0

Please sign in to comment.