mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
interfaces: ETOOMANYPARENS
This commit is contained in:
parent
a8f54d2e77
commit
fa7c114359
@ -257,7 +257,7 @@ function legacy_interfaces_details($intf = null)
|
||||
unset($mask);
|
||||
for ($i = 0; $i < count($line_parts) - 1; ++$i) {
|
||||
if ($line_parts[$i] == 'netmask') {
|
||||
$mask = substr_count(base_convert(hexdec($line_parts[($i + 1)]), 10, 2), '1');
|
||||
$mask = substr_count(base_convert(hexdec($line_parts[$i + 1]), 10, 2), '1');
|
||||
}
|
||||
}
|
||||
if (isset($mask)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user