Project

General

Profile

« Previous | Next » 

Revision cfc5a090

Added by Scott Ullrich about 18 years ago

Back out last commit, it removes the hostname check and is not the correct fix.

Ryan will be investigating the issue further since he added this feature.

View differences:

usr/local/www/services_dhcp_edit.php
91 91
		if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
92 92
			continue;
93 93

  
94
		if (($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) {
95
			$input_errors[] = "This IP or MAC address already exists.";
94
		if (($mapent['hostname'] == $_POST['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) {
95
			$input_errors[] = "This Hostname, IP or MAC address already exists.";
96 96
			break;
97 97
		}
98 98
	}

Also available in: Unified diff