From 54aca14d2c54fda46ed7a5ed79ee5b57092fea72 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Jan 2024 11:00:49 +0000 Subject: [PATCH] Fix uncaught TypeError: explode() --- ajax/networking/get_netcfg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax/networking/get_netcfg.php b/ajax/networking/get_netcfg.php index aee8e702e..117952bbb 100644 --- a/ajax/networking/get_netcfg.php +++ b/ajax/networking/get_netcfg.php @@ -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];