PHP7 - Resolve Warning: A non-numeric value encountered in /usr/local/bin/dhcpd_gather_stats.php

This commit is contained in:
Steve Beaver 2018-04-26 15:22:31 -04:00
parent f156083a8b
commit 68ba7d894d

View File

@ -199,7 +199,7 @@ if (is_array($config['dhcpd'][$argv[1]])) {
}
}
else {
if (is_inrange_v4($data['ip'], $subnet_start, $subnet_end)) {
if (is_inrange_v4(intval($data['ip']), $subnet_start, $subnet_end)) {
$result['static'] = $result['static'] + 1;
}
}