diff options
-rwxr-xr-x | usr/local/www/services_dhcp.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 4f5ee41..172593e 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -309,7 +309,8 @@ if ($_POST) { // Handle the custom options rowhelper $numbervalue = array(); - unset($config['dhcpd'][$if]['numberoptions']['item']); + if(isset($config['dhcpd'][$if]['numberoptions']['item'])) + unset($config['dhcpd'][$if]['numberoptions']['item']); for($x=0; $x<isset($_POST["number{$x}"]); $x++) { if(is_int(intval($_POST["number{$x}"]))) { $numbervalue['number'] = htmlspecialchars($_POST["number{$x}"]); |