Skip to content
Snippets Groups Projects
Commit 1bb8ea6d authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Fix undeclared variables.

parent e11524db
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,8 @@ class Net ...@@ -34,6 +34,8 @@ class Net
list ($net, $mask) = explode('/', $cidr); list ($net, $mask) = explode('/', $cidr);
$ip_ip = array();
$ip_net = array();
if (strstr($ip, ':') || strstr($net, ':')) { if (strstr($ip, ':') || strstr($net, ':')) {
// Validate IPv6 with inet_pton, convert to hex with bin2hex // Validate IPv6 with inet_pton, convert to hex with bin2hex
// then store as a long with hexdec // then store as a long with hexdec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment