mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix syntax error in PHP 5.3
This commit is contained in:
parent
cd057527ac
commit
56302f58b4
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class Korea
|
|||
if (!filter_var($ip, \FILTER_VALIDATE_IP)) return false;
|
||||
|
||||
// Check IPv4.
|
||||
if (filter_var($ip, \FILTER_VALIDATE_IP, ['flags' => \FILTER_FLAG_IPV4]))
|
||||
if (filter_var($ip, \FILTER_VALIDATE_IP, array('flags' => \FILTER_FLAG_IPV4)))
|
||||
{
|
||||
// Convert to integer.
|
||||
$ipnum = sprintf('%u', ip2long($ip));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue