Skip to content

Commit

Permalink
Fix uncaught TypeError: explode()
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Jan 30, 2024
1 parent e6d4f76 commit 54aca14
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 54aca14

Please sign in to comment.