aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/tinydns/tinydns.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index afa258fb..94f148f7 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -462,10 +462,10 @@ function tinydns_create_zone_file() {
if($config['installedpackages']['tinydns']['config'][0]['regdhcpstatic']) {
$interfaces = explode(",", $config['installedpackages']['tinydns']['config'][0]['interface']);
foreach ($interfaces as $dnsif) {
- if (is_array($config['dhcpd'][$dnsif]))
+ if (!is_array($config['dhcpd'][$dnsif]))
continue;
$zone =& $config['dhcpd'][$dnsif];
- if (!isset($dhcpifconf['enable']))
+ if (!isset($zone['enable']))
continue;
$dhcpdhostname = $config['system']['hostname'];
if ($zone['ddnsdomain'])