diff --git a/src/usr/local/www/wizards/setup_wizard.xml b/src/usr/local/www/wizards/setup_wizard.xml index 293e8a4284..35486a01d6 100644 --- a/src/usr/local/www/wizards/setup_wizard.xml +++ b/src/usr/local/www/wizards/setup_wizard.xml @@ -669,6 +669,8 @@ If the existing DHCP range on LAN is not in the new subnet or is invalid, then replace the range with a newly crafted one. */ + init_config_arr(array('dhcpd', 'lan', 'range', 'from')); + init_config_arr(array('dhcpd', 'lan', 'range', 'to')); if (!ip_in_subnet($config['dhcpd']['lan']['range']['from'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}") || !ip_in_subnet($config['dhcpd']['lan']['range']['to'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}")) {