add new fixed IP when PC name or MAC address are filled (RFE 3564758)

This commit is contained in:
Roland Gruber 2012-09-06 13:46:19 +00:00
parent 9f48af3050
commit 2459e2bf38
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ class fixed_ip extends baseModule {
}
// Add new IP
if(isset($_POST['add_ip'])) {
if (isset($_POST['add_ip']) || ($_POST['pc_add'] != '') || ($_POST['mac_add'] != '')) {
// Add IP:
$this->fixed_ip[] = array('cn' => $_POST['pc_add'], 'mac' => $_POST['mac_add'], 'ip' => $_POST['ip_add']);
}