@@ -62,7 +62,9 @@ |
||
62 | 62 | // $netmask is a CIDR size block |
63 | 63 | // fix the range argument |
64 | 64 | $x = explode('.', $range); |
65 | - while (count($x) < 4) $x[] = '0'; |
|
65 | + while (count($x) < 4) { |
|
66 | + $x[] = '0'; |
|
67 | + } |
|
66 | 68 | list($a, $b, $c, $d) = $x; |
67 | 69 | $range = sprintf("%u.%u.%u.%u", empty($a) ? '0' : $a, empty($b) ? '0' : $b, empty($c) ? '0' : $c, empty($d) ? '0' : $d); |
68 | 70 | $range_dec = ip2long($range); |