From cce6c834c0b4568573c0be3f5b74d9c0d29e6e37 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 29 Nov 2016 12:00:47 -0500 Subject: Fix the static ARP test --- src/usr/local/www/services_dhcp_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www/services_dhcp_edit.php') 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."); } -- cgit v1.1