fixed PHP notice
This commit is contained in:
parent
5c995a9773
commit
752d1fd5b3
|
@ -184,10 +184,10 @@ class fixed_ip extends baseModule {
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
public function reload_ips() {
|
public function reload_ips() {
|
||||||
|
$ip_edit = false; // IPs were edited?
|
||||||
// Only run it, when ranges already exists:
|
// Only run it, when ranges already exists:
|
||||||
if(is_array($this->fixed_ip)) {
|
if(is_array($this->fixed_ip)) {
|
||||||
$ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]);
|
$ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]);
|
||||||
$ip_edit = false; // Range were edit?
|
|
||||||
foreach ($this->fixed_ip AS $id=>$arr) {
|
foreach ($this->fixed_ip AS $id=>$arr) {
|
||||||
if (!empty($this->fixed_ip[$id]['ip']) && !range::check_subnet_range($this->fixed_ip[$id]['ip'],
|
if (!empty($this->fixed_ip[$id]['ip']) && !range::check_subnet_range($this->fixed_ip[$id]['ip'],
|
||||||
$this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0],
|
$this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0],
|
||||||
|
|
|
@ -240,10 +240,10 @@ class range extends baseModule {
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
public function reload_ranges() {
|
public function reload_ranges() {
|
||||||
|
$range_edit = false; // Range were edited?
|
||||||
// Only run it, when ranges already exists:
|
// Only run it, when ranges already exists:
|
||||||
if(is_array($this->ranges)) {
|
if(is_array($this->ranges)) {
|
||||||
$ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]);
|
$ex_subnet = explode(".", $this->getAccountContainer()->getAccountModule('dhcp_settings')->attributes['cn'][0]);
|
||||||
$range_edit = false; // Range were edit?
|
|
||||||
$dhcpAttrs = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getAttributes();
|
$dhcpAttrs = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getAttributes();
|
||||||
$mask = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getDHCPOption('subnet-mask');
|
$mask = $this->getAccountContainer()->getAccountModule('dhcp_settings')->getDHCPOption('subnet-mask');
|
||||||
foreach ($this->ranges AS $id=>$arr) {
|
foreach ($this->ranges AS $id=>$arr) {
|
||||||
|
|
Loading…
Reference in New Issue