summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-29 17:10:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-29 17:10:52 +0000
commitc229a1d824eee224e8777eaecaf25aa743752ad9 (patch)
treef893f8bacfbfc5ae6d393041d8f8d2cae62c8be1 /usr/local/www/services_dhcp_edit.php
parent7604679a1bd06b5f8ccfe5a2ae50031353f6f02b (diff)
downloadpfsense-c229a1d824eee224e8777eaecaf25aa743752ad9.zip
pfsense-c229a1d824eee224e8777eaecaf25aa743752ad9.tar.gz
Sync w/ m0n0wall
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 238456f..11eb283 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -91,8 +91,8 @@ if ($_POST) {
if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
continue;
- if (($mapent['hostname'] == $_POST['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) {
- $input_errors[] = "This Hostname, IP or MAC address already exists.";
+ if (($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) {
+ $input_errors[] = "This IP or MAC address already exists.";
break;
}
}
OpenPOWER on IntegriCloud