add new fixed IP when PC name or MAC address are filled (RFE 3564758)
This commit is contained in:
parent
9f48af3050
commit
2459e2bf38
|
@ -309,7 +309,7 @@ class fixed_ip extends baseModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add new IP
|
// Add new IP
|
||||||
if(isset($_POST['add_ip'])) {
|
if (isset($_POST['add_ip']) || ($_POST['pc_add'] != '') || ($_POST['mac_add'] != '')) {
|
||||||
// Add IP:
|
// Add IP:
|
||||||
$this->fixed_ip[] = array('cn' => $_POST['pc_add'], 'mac' => $_POST['mac_add'], 'ip' => $_POST['ip_add']);
|
$this->fixed_ip[] = array('cn' => $_POST['pc_add'], 'mac' => $_POST['mac_add'], 'ip' => $_POST['ip_add']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue