diff options
author | jim-p <jimp@pfsense.org> | 2010-08-03 09:15:59 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-03 09:16:44 -0400 |
commit | 01292dc2e49bb49ac37d48d06d0a8a113f1f3be6 (patch) | |
tree | 24e1ffdc0ab7c1e3b4f4245065e4f40a0245b5de /usr/local/www/services_dhcp_edit.php | |
parent | 9fd16ce49ecffa35cb67ebd17d1236a731844629 (diff) | |
download | pfsense-01292dc2e49bb49ac37d48d06d0a8a113f1f3be6.zip pfsense-01292dc2e49bb49ac37d48d06d0a8a113f1f3be6.tar.gz |
Fix this variable name and error message (It's Static ARP not Static map)
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 02a7315..dd98fa4 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -72,7 +72,7 @@ if (!is_array($config['dhcpd'][$if]['staticmap'])) { $config['dhcpd'][$if]['staticmap'] = array(); } -$static_map_enabled=isset($config['dhcpd'][$if]['staticarp']); +$static_arp_enabled=isset($config['dhcpd'][$if]['staticarp']); $a_maps = &$config['dhcpd'][$if]['staticmap']; $ifcfgip = get_interface_ip($if); @@ -123,8 +123,8 @@ if ($_POST) { if (($_POST['mac'] && !is_macaddr($_POST['mac']))) { $input_errors[] = "A valid MAC address must be specified."; } - if($static_map_enabled && !$_POST['ipaddr']) { - $input_errors[] = "Static map is enabled. You must specify an IP address."; + if($static_arp_enabled && !$_POST['ipaddr']) { + $input_errors[] = "Static ARP is enabled. You must specify an IP address."; } /* check for overlaps */ |