fix: broken variable initializations php 8.1

This commit is contained in:
Ely Deckers 2023-03-12 22:23:56 +01:00
parent 134cbe0cd9
commit f8c0630c80
1 changed files with 7 additions and 0 deletions

View File

@ -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);