Skip to content

Commit

Permalink
Merge pull request #1508 from RaspAP/fix/dhcp-no-resolv
Browse files Browse the repository at this point in the history
Fix uncaught TypeError: explode()
  • Loading branch information
billz authored Jan 30, 2024
2 parents e6d4f76 + 54aca14 commit 224f4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax/networking/get_netcfg.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$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];
Expand Down

0 comments on commit 224f4ca

Please sign in to comment.