diff --git a/lam/lib/modules/fixed_ip.inc b/lam/lib/modules/fixed_ip.inc index 7d183b2f..e45603cb 100644 --- a/lam/lib/modules/fixed_ip.inc +++ b/lam/lib/modules/fixed_ip.inc @@ -184,10 +184,10 @@ class fixed_ip extends baseModule { * **/ public function reload_ips() { - // Only run it, when ranges already exists: + $ip_edit = false; // IPs were edited? + // Only run it, when ranges already exists: if(is_array($this->fixed_ip)) { $ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]); - $ip_edit = false; // Range were edit? foreach ($this->fixed_ip AS $id=>$arr) { if (!empty($this->fixed_ip[$id]['ip']) && !range::check_subnet_range($this->fixed_ip[$id]['ip'], $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0], diff --git a/lam/lib/modules/range.inc b/lam/lib/modules/range.inc index 6a8eff60..97266f24 100644 --- a/lam/lib/modules/range.inc +++ b/lam/lib/modules/range.inc @@ -240,10 +240,10 @@ class range extends baseModule { * **/ public function reload_ranges() { - // Only run it, when ranges already exists: + $range_edit = false; // Range were edited? + // Only run it, when ranges already exists: if(is_array($this->ranges)) { $ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]); - $range_edit = false; // Range were edit? $dhcpAttrs = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getAttributes(); $mask = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getDHCPOption('subnet-mask'); foreach ($this->ranges AS $id=>$arr) {