aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-08-01 23:34:51 -0400
committerChris Buechler <cmb@pfsense.org>2010-08-01 23:34:51 -0400
commitee0ba8bbd8e060138e01e3b93b495691af192da6 (patch)
tree9f8d881b496db4045ffd96dc7ba170120af6aca1 /config/tinydns/tinydns.inc
parentb7ab177def6b4eb138f65491ca493e2c3d1d2d02 (diff)
downloadpfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.tar.gz
pfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.tar.bz2
pfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.zip
fix lease registration. ticket #546
Diffstat (limited to 'config/tinydns/tinydns.inc')
-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'])