fixed PHP notice

This commit is contained in:
Roland Gruber 2013-09-14 15:38:35 +00:00
parent 5c995a9773
commit 752d1fd5b3
2 changed files with 4 additions and 4 deletions

View File

@ -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],

View File

@ -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) {