summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
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