From 68ba7d894d5675d934c844a8a69d2c53d64416a2 Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Thu, 26 Apr 2018 15:22:31 -0400 Subject: [PATCH] PHP7 - Resolve Warning: A non-numeric value encountered in /usr/local/bin/dhcpd_gather_stats.php --- src/usr/local/bin/dhcpd_gather_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/bin/dhcpd_gather_stats.php b/src/usr/local/bin/dhcpd_gather_stats.php index 8d30c1273d..d6e701e3e1 100644 --- a/src/usr/local/bin/dhcpd_gather_stats.php +++ b/src/usr/local/bin/dhcpd_gather_stats.php @@ -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; } }