IPaddresses : remove the @list and use tmp variable
This commit is contained in:
@@ -98,7 +98,9 @@ class Ipaddresses
|
|||||||
500
|
500
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@list($ip, $cidr) = @explode("/", $ip);
|
$tmp = explode("/", $ip);
|
||||||
|
$ip = $tmp{0};
|
||||||
|
$cidr = (isset($tmp{1})) ? $tmp{1} : null;
|
||||||
if ($cidr === null) {
|
if ($cidr === null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -124,7 +126,9 @@ class Ipaddresses
|
|||||||
500
|
500
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@list($ip, $cidr) = @explode("/", $ip);
|
$tmp = explode("/", $ip);
|
||||||
|
$ip = $tmp{0};
|
||||||
|
$cidr = (isset($tmp{1})) ? $tmp{1} : null;
|
||||||
if ($cidr === null) {
|
if ($cidr === null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user