mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +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;
|
if (!filter_var($ip, \FILTER_VALIDATE_IP)) return false;
|
||||||
|
|
||||||
// Check IPv4.
|
// 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.
|
// Convert to integer.
|
||||||
$ipnum = sprintf('%u', ip2long($ip));
|
$ipnum = sprintf('%u', ip2long($ip));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue