summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-11-29 12:00:47 -0500
committerjim-p <jimp@pfsense.org>2016-11-29 12:01:01 -0500
commitcce6c834c0b4568573c0be3f5b74d9c0d29e6e37 (patch)
treea0bc66091d3d0da70583d4c0556dc764550c06d0 /src/usr/local/www/services_dhcp_edit.php
parent31ec01c3132e6ba124d7b38e6460580974770cfc (diff)
downloadpfsense-cce6c834c0b4568573c0be3f5b74d9c0d29e6e37.zip
pfsense-cce6c834c0b4568573c0be3f5b74d9c0d29e6e37.tar.gz
Fix the static ARP test
Diffstat (limited to 'src/usr/local/www/services_dhcp_edit.php')
-rw-r--r--src/usr/local/www/services_dhcp_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/services_dhcp_edit.php b/src/usr/local/www/services_dhcp_edit.php
index 165524b..2adc492 100644
--- a/src/usr/local/www/services_dhcp_edit.php
+++ b/src/usr/local/www/services_dhcp_edit.php
@@ -287,10 +287,10 @@ if ($_POST) {
if (($_POST['nextserver'] && !is_ipaddrv4($_POST['nextserver']))) {
$input_errors[] = gettext("A valid IPv4 address must be specified for the network boot server.");
}
- if (isset($_POST['arp_table_static_entry']) && (empty($_POST['mac']) || empty($_POST['ipaddr']))) {
- $input_errors[] = gettext("A valid MAC address and IPv4 must be specified for use with static ARP.");
+ if (isset($_POST['arp_table_static_entry']) && empty($_POST['mac'])) {
+ $input_errors[] = gettext("A valid MAC address must be specified for use with static ARP.");
}
- if (isset($_POST['arp_table_static_entry']) && ) {
+ if (isset($_POST['arp_table_static_entry']) && empty($_POST['ipaddr'])) {
$input_errors[] = gettext("A valid IPv4 address must be specified for use with static ARP.");
}
OpenPOWER on IntegriCloud