Merge pull request #1508 from RaspAP/fix/dhcp-no-resolv

Fix uncaught TypeError: explode()
This commit is contained in:
Bill Zimmerman
2024-01-30 12:27:24 +01:00
committed by GitHub

View File

@@ -11,7 +11,7 @@ if (isset($interface)) {
$conf = ParseConfig($return);
$dhcpdata['DHCPEnabled'] = empty($conf) ? false : true;
$arrRange = explode(",", $conf['dhcp-range']);
$arrRange = explode(",", $conf['dhcp-range'][0]);
$dhcpdata['RangeStart'] = $arrRange[0];
$dhcpdata['RangeEnd'] = $arrRange[1];
$dhcpdata['RangeMask'] = $arrRange[2];