From f8c0630c80f3f594c63cfa7749761e90e435eb6b Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Sun, 12 Mar 2023 22:23:56 +0100 Subject: [PATCH] fix: broken variable initializations php 8.1 --- pfsense_zbx.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pfsense_zbx.php b/pfsense_zbx.php index 5975f50..2773649 100644 --- a/pfsense_zbx.php +++ b/pfsense_zbx.php @@ -859,6 +859,13 @@ function pfz_dhcp_get($valuekey) { $leases_count = count($leases_content); @exec("/usr/sbin/arp -an", $rawdata); + $leases = []; + $pools = []; + + $i = 0; + $l = 0; + $p = 0; + foreach ($leases_content as $lease) { /* split the line by space */ $data = explode(" ", $lease);