fixed IP editing
This commit is contained in:
parent
7c718c2a0b
commit
9e6812d8c2
|
@ -248,9 +248,10 @@ class ddns extends baseModule {
|
||||||
for ($i = 0; $i < sizeof($this->attributes['dhcpStatements']); $i++) {
|
for ($i = 0; $i < sizeof($this->attributes['dhcpStatements']); $i++) {
|
||||||
if (substr($this->attributes['dhcpStatements'][$i], 0, 5) == 'zone ') {
|
if (substr($this->attributes['dhcpStatements'][$i], 0, 5) == 'zone ') {
|
||||||
unset($this->attributes['dhcpStatements'][$i]);
|
unset($this->attributes['dhcpStatements'][$i]);
|
||||||
|
$this->attributes['dhcpStatements'] = array_values($this->attributes['dhcpStatements']);
|
||||||
|
$i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->attributes['dhcpStatements'] = array_values($this->attributes['dhcpStatements']);
|
|
||||||
|
|
||||||
// Zone inserted?
|
// Zone inserted?
|
||||||
if (!empty($zone)) {
|
if (!empty($zone)) {
|
||||||
|
@ -280,7 +281,6 @@ class ddns extends baseModule {
|
||||||
* @return array HTML meta data
|
* @return array HTML meta data
|
||||||
*/
|
*/
|
||||||
public function display_html_attributes() {
|
public function display_html_attributes() {
|
||||||
|
|
||||||
if ($_SESSION['account']->getAccountModule('dhcp_settings')->dn==$_SESSION['config']->get_suffix('dhcp')) {
|
if ($_SESSION['account']->getAccountModule('dhcp_settings')->dn==$_SESSION['config']->get_suffix('dhcp')) {
|
||||||
// DHCP main settings
|
// DHCP main settings
|
||||||
$return[] = array(
|
$return[] = array(
|
||||||
|
|
Loading…
Reference in New Issue