Fixup dhcpd interface enabled check

This commit is contained in:
Phil Davis 2014-11-03 22:28:46 +05:45
parent ba667cc6f4
commit a3fad59243
1 changed files with 1 additions and 4 deletions

View File

@ -395,10 +395,7 @@ function console_configure_dhcpd($version = 4) {
$config[$dhcpd][$interface]['range']['from'] = $dhcpstartip;
$config[$dhcpd][$interface]['range']['to'] = $dhcpendip;
} else {
/* TODO - this line is causing a "Fatal error: Cannot unset
string offsets in /etc/rc.initial.setlanip" on below line
number - Nov 2014 - is it really? */
if($config[$dhcpd][$interface]) {
if(isset($config[$dhcpd][$interface]['enable'])) {
unset($config[$dhcpd][$interface]['enable']);
printf(gettext("Disabling %s DHCPD..."), $label_IPvX);
$restart_dhcpd = true;