From 1bb8ea6ddf1063ad0509263a5b554e4aad21ca5a Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Fri, 31 Jul 2015 13:56:33 +0200 Subject: [PATCH] Fix undeclared variables. --- lib/SimpleSAML/Utils/Net.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SimpleSAML/Utils/Net.php b/lib/SimpleSAML/Utils/Net.php index 4cf2c83c6..9c8e0df2e 100644 --- a/lib/SimpleSAML/Utils/Net.php +++ b/lib/SimpleSAML/Utils/Net.php @@ -34,6 +34,8 @@ class Net list ($net, $mask) = explode('/', $cidr); + $ip_ip = array(); + $ip_net = array(); if (strstr($ip, ':') || strstr($net, ':')) { // Validate IPv6 with inet_pton, convert to hex with bin2hex // then store as a long with hexdec -- GitLab