Relax the ip address check and allow duplicate ip address entries.

This commit is contained in:
Scott Ullrich 2007-10-19 20:46:11 +00:00
parent 0c82024286
commit 316ea93621

View File

@ -97,7 +97,7 @@ if ($_POST) {
if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
continue;
if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'])) {
if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac'])) {
$input_errors[] = "This Hostname, IP or MAC address already exists.";
break;
}