diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-08-01 23:34:51 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-08-01 23:34:51 -0400 |
commit | ee0ba8bbd8e060138e01e3b93b495691af192da6 (patch) | |
tree | 9f8d881b496db4045ffd96dc7ba170120af6aca1 | |
parent | b7ab177def6b4eb138f65491ca493e2c3d1d2d02 (diff) | |
download | pfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.tar.gz pfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.tar.bz2 pfsense-packages-ee0ba8bbd8e060138e01e3b93b495691af192da6.zip |
fix lease registration. ticket #546
-rw-r--r-- | config/tinydns/tinydns.inc | 4 |
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']) |