diff --git a/src/www/diag_smart.php b/src/www/diag_smart.php
index f9d662a54..d6f8f8b0a 100644
--- a/src/www/diag_smart.php
+++ b/src/www/diag_smart.php
@@ -276,7 +276,7 @@ switch($action) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_sockets.php b/src/www/diag_sockets.php
index fe6fb54e0..006840226 100644
--- a/src/www/diag_sockets.php
+++ b/src/www/diag_sockets.php
@@ -53,7 +53,7 @@ $showAllOption = $showAll ? "" : "?showAll";
For explanation about the meaning of the information listed for each socket click here .
To show information about both listening and connected sockets click this.
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_system_activity.php b/src/www/diag_system_activity.php
index d973d57dc..4780aa09f 100644
--- a/src/www/diag_system_activity.php
+++ b/src/www/diag_system_activity.php
@@ -78,7 +78,7 @@ include("head.inc");
print_info_box($savemsg);
echo "
";
}
- if (isset($input_errors))
+ if (isset($input_errors) && count($input_errors) > 0)
print_input_errors($input_errors);
?>
diff --git a/src/www/diag_system_pftop.php b/src/www/diag_system_pftop.php
index 269e506ca..999d5ac01 100644
--- a/src/www/diag_system_pftop.php
+++ b/src/www/diag_system_pftop.php
@@ -170,7 +170,7 @@ if($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes)
print_info_box($savemsg);
echo "
";
}
- if (isset($input_errors))
+ if (isset($input_errors) && count($input_errors) > 0)
print_input_errors($input_errors);
?>
diff --git a/src/www/diag_testport.php b/src/www/diag_testport.php
index 572c2e567..4ccd80d14 100644
--- a/src/www/diag_testport.php
+++ b/src/www/diag_testport.php
@@ -92,7 +92,7 @@ include("head.inc"); ?>
diff --git a/src/www/diag_traceroute.php b/src/www/diag_traceroute.php
index a21c4e436..3dbb6e358 100644
--- a/src/www/diag_traceroute.php
+++ b/src/www/diag_traceroute.php
@@ -85,7 +85,7 @@ if (!isset($do_traceroute)) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/easyrule.php b/src/www/easyrule.php
index a1c0f6552..c7ce44f3e 100644
--- a/src/www/easyrule.php
+++ b/src/www/easyrule.php
@@ -63,7 +63,7 @@ include("head.inc"); ?>
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_aliases_edit.php b/src/www/firewall_aliases_edit.php
index b98c13fb7..1eefbe265 100644
--- a/src/www/firewall_aliases_edit.php
+++ b/src/www/firewall_aliases_edit.php
@@ -607,7 +607,7 @@ EOD;
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_aliases_import.php b/src/www/firewall_aliases_import.php
index 4a5b04c64..06ae5dda9 100644
--- a/src/www/firewall_aliases_import.php
+++ b/src/www/firewall_aliases_import.php
@@ -157,7 +157,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_1to1_edit.php b/src/www/firewall_nat_1to1_edit.php
index 25a3f2745..59da05526 100644
--- a/src/www/firewall_nat_1to1_edit.php
+++ b/src/www/firewall_nat_1to1_edit.php
@@ -282,7 +282,7 @@ include("head.inc");
0)
print_input_errors($input_errors);
?>
diff --git a/src/www/firewall_nat_edit.php b/src/www/firewall_nat_edit.php
index 38df5433b..68a3e2938 100644
--- a/src/www/firewall_nat_edit.php
+++ b/src/www/firewall_nat_edit.php
@@ -447,7 +447,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_npt_edit.php b/src/www/firewall_nat_npt_edit.php
index 5b05ce2a1..ebe971c50 100644
--- a/src/www/firewall_nat_npt_edit.php
+++ b/src/www/firewall_nat_npt_edit.php
@@ -145,7 +145,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_out_edit.php b/src/www/firewall_nat_out_edit.php
index 40e0de1f4..dc8715d9b 100644
--- a/src/www/firewall_nat_out_edit.php
+++ b/src/www/firewall_nat_out_edit.php
@@ -432,7 +432,7 @@ function poolopts_change() {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_rules_edit.php b/src/www/firewall_rules_edit.php
index 3468e8e43..ab008a4d5 100644
--- a/src/www/firewall_rules_edit.php
+++ b/src/www/firewall_rules_edit.php
@@ -726,7 +726,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_schedule_edit.php b/src/www/firewall_schedule_edit.php
index a053ac1ef..8d0b37c73 100644
--- a/src/www/firewall_schedule_edit.php
+++ b/src/www/firewall_schedule_edit.php
@@ -764,7 +764,7 @@ EOD;
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_virtual_ip.php b/src/www/firewall_virtual_ip.php
index df3f63b0b..a0b882c04 100644
--- a/src/www/firewall_virtual_ip.php
+++ b/src/www/firewall_virtual_ip.php
@@ -190,7 +190,7 @@ $main_buttons = array(
0)
print_input_errors($input_errors);
else
if (isset($savemsg))
diff --git a/src/www/firewall_virtual_ip_edit.php b/src/www/firewall_virtual_ip_edit.php
index d3f858ec9..3078d036a 100644
--- a/src/www/firewall_virtual_ip_edit.php
+++ b/src/www/firewall_virtual_ip_edit.php
@@ -323,7 +323,7 @@ function typesel_change() {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces.php b/src/www/interfaces.php
index 7eeedf497..65f8a3c5b 100644
--- a/src/www/interfaces.php
+++ b/src/www/interfaces.php
@@ -1561,7 +1561,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
-
+ 0) print_input_errors($input_errors); ?>
".gettext("You must apply the changes in order for them to take effect.")."
".gettext("Don't forget to adjust the DHCP Server range if needed after applying."));?>
diff --git a/src/www/interfaces_assign.php b/src/www/interfaces_assign.php
index a5f3b625f..8123d5402 100644
--- a/src/www/interfaces_assign.php
+++ b/src/www/interfaces_assign.php
@@ -444,7 +444,7 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed"))
} elseif($savemsg)
print_info_box($savemsg);
- if (isset($input_errors))
+ if (isset($input_errors) && count($input_errors) > 0)
print_input_errors($input_errors);
?>
diff --git a/src/www/interfaces_bridge.php b/src/www/interfaces_bridge.php
index 1cbd5cd95..286018bf3 100644
--- a/src/www/interfaces_bridge.php
+++ b/src/www/interfaces_bridge.php
@@ -93,7 +93,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_bridge_edit.php b/src/www/interfaces_bridge_edit.php
index ce44e5f65..35f476a19 100644
--- a/src/www/interfaces_bridge_edit.php
+++ b/src/www/interfaces_bridge_edit.php
@@ -261,7 +261,7 @@ function show_source_port_range() {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gif.php b/src/www/interfaces_gif.php
index 118455de6..fb4c10b97 100644
--- a/src/www/interfaces_gif.php
+++ b/src/www/interfaces_gif.php
@@ -81,7 +81,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gif_edit.php b/src/www/interfaces_gif_edit.php
index 0838df84f..82d414902 100644
--- a/src/www/interfaces_gif_edit.php
+++ b/src/www/interfaces_gif_edit.php
@@ -134,7 +134,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gre.php b/src/www/interfaces_gre.php
index 9ab150ec5..0d6bfc9b2 100644
--- a/src/www/interfaces_gre.php
+++ b/src/www/interfaces_gre.php
@@ -82,7 +82,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gre_edit.php b/src/www/interfaces_gre_edit.php
index ad83d4e23..e8c01c03c 100644
--- a/src/www/interfaces_gre_edit.php
+++ b/src/www/interfaces_gre_edit.php
@@ -130,7 +130,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_groups_edit.php b/src/www/interfaces_groups_edit.php
index 4b4750060..eb4d48cce 100644
--- a/src/www/interfaces_groups_edit.php
+++ b/src/www/interfaces_groups_edit.php
@@ -233,7 +233,7 @@ function removeRow(el) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_lagg.php b/src/www/interfaces_lagg.php
index 54127e6dc..b20cbe78b 100644
--- a/src/www/interfaces_lagg.php
+++ b/src/www/interfaces_lagg.php
@@ -87,7 +87,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_lagg_edit.php b/src/www/interfaces_lagg_edit.php
index c1bf26ae8..5c16b8117 100644
--- a/src/www/interfaces_lagg_edit.php
+++ b/src/www/interfaces_lagg_edit.php
@@ -135,7 +135,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_ppps.php b/src/www/interfaces_ppps.php
index 0a5f5a9e8..88a8b573f 100644
--- a/src/www/interfaces_ppps.php
+++ b/src/www/interfaces_ppps.php
@@ -83,7 +83,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_ppps_edit.php b/src/www/interfaces_ppps_edit.php
index a32346bb6..2b232a5fd 100644
--- a/src/www/interfaces_ppps_edit.php
+++ b/src/www/interfaces_ppps_edit.php
@@ -400,7 +400,7 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE"
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_qinq.php b/src/www/interfaces_qinq.php
index ea4aa2653..20acb64fb 100644
--- a/src/www/interfaces_qinq.php
+++ b/src/www/interfaces_qinq.php
@@ -91,7 +91,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_qinq_edit.php b/src/www/interfaces_qinq_edit.php
index b56497c73..24eff3983 100644
--- a/src/www/interfaces_qinq_edit.php
+++ b/src/www/interfaces_qinq_edit.php
@@ -277,7 +277,7 @@ function removeRow(el) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_vlan.php b/src/www/interfaces_vlan.php
index b62c2ec61..8fba2ce7d 100644
--- a/src/www/interfaces_vlan.php
+++ b/src/www/interfaces_vlan.php
@@ -91,7 +91,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_vlan_edit.php b/src/www/interfaces_vlan_edit.php
index ed1b395ae..9036c5540 100644
--- a/src/www/interfaces_vlan_edit.php
+++ b/src/www/interfaces_vlan_edit.php
@@ -153,7 +153,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_wireless.php b/src/www/interfaces_wireless.php
index 49ea9c968..b872f4e0a 100644
--- a/src/www/interfaces_wireless.php
+++ b/src/www/interfaces_wireless.php
@@ -81,7 +81,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_wireless_edit.php b/src/www/interfaces_wireless_edit.php
index a28784fb0..c3584c1f5 100644
--- a/src/www/interfaces_wireless_edit.php
+++ b/src/www/interfaces_wireless_edit.php
@@ -147,7 +147,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_monitor.php b/src/www/load_balancer_monitor.php
index cdbaf81c6..f782a8e6d 100644
--- a/src/www/load_balancer_monitor.php
+++ b/src/www/load_balancer_monitor.php
@@ -90,7 +90,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_monitor_edit.php b/src/www/load_balancer_monitor_edit.php
index 1bb220d66..afe51f152 100644
--- a/src/www/load_balancer_monitor_edit.php
+++ b/src/www/load_balancer_monitor_edit.php
@@ -220,7 +220,7 @@ $types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => get
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_pool.php b/src/www/load_balancer_pool.php
index f4711fd4f..6214113a1 100644
--- a/src/www/load_balancer_pool.php
+++ b/src/www/load_balancer_pool.php
@@ -100,7 +100,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_pool_edit.php b/src/www/load_balancer_pool_edit.php
index b2317a680..466010d2f 100644
--- a/src/www/load_balancer_pool_edit.php
+++ b/src/www/load_balancer_pool_edit.php
@@ -184,7 +184,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_relay_action.php b/src/www/load_balancer_relay_action.php
index 87d25cd1c..7c46c88d6 100644
--- a/src/www/load_balancer_relay_action.php
+++ b/src/www/load_balancer_relay_action.php
@@ -104,7 +104,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_relay_action_edit.php b/src/www/load_balancer_relay_action_edit.php
index 8211227c4..09e913b56 100644
--- a/src/www/load_balancer_relay_action_edit.php
+++ b/src/www/load_balancer_relay_action_edit.php
@@ -395,7 +395,7 @@ jQuery(document).ready(function() {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_relay_protocol.php b/src/www/load_balancer_relay_protocol.php
index 10bbbd454..446df4f79 100644
--- a/src/www/load_balancer_relay_protocol.php
+++ b/src/www/load_balancer_relay_protocol.php
@@ -99,7 +99,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_relay_protocol_edit.php b/src/www/load_balancer_relay_protocol_edit.php
index ea1fc5ffd..0735dee90 100644
--- a/src/www/load_balancer_relay_protocol_edit.php
+++ b/src/www/load_balancer_relay_protocol_edit.php
@@ -179,7 +179,7 @@ jQuery(document).ready(function(){
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_setting.php b/src/www/load_balancer_setting.php
index 7c7c7a188..ea3e0b7e9 100644
--- a/src/www/load_balancer_setting.php
+++ b/src/www/load_balancer_setting.php
@@ -95,7 +95,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_virtual_server.php b/src/www/load_balancer_virtual_server.php
index 962ab7c8f..84878d8a8 100644
--- a/src/www/load_balancer_virtual_server.php
+++ b/src/www/load_balancer_virtual_server.php
@@ -100,7 +100,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_virtual_server_edit.php b/src/www/load_balancer_virtual_server_edit.php
index a5ad2a97f..a928cadc0 100644
--- a/src/www/load_balancer_virtual_server_edit.php
+++ b/src/www/load_balancer_virtual_server_edit.php
@@ -150,7 +150,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_captiveportal.php b/src/www/services_captiveportal.php
index 8d2f1e621..120a19c3f 100644
--- a/src/www/services_captiveportal.php
+++ b/src/www/services_captiveportal.php
@@ -479,7 +479,7 @@ function enable_change(enable_change) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_captiveportal_filemanager.php b/src/www/services_captiveportal_filemanager.php
index 32a1f1b0f..199691cde 100644
--- a/src/www/services_captiveportal_filemanager.php
+++ b/src/www/services_captiveportal_filemanager.php
@@ -142,7 +142,7 @@ $main_buttons = array(
- 0) {
print_input_errors($input_errors);
} ?>
diff --git a/src/www/services_captiveportal_ip_edit.php b/src/www/services_captiveportal_ip_edit.php
index a46c92ebd..ab204303a 100644
--- a/src/www/services_captiveportal_ip_edit.php
+++ b/src/www/services_captiveportal_ip_edit.php
@@ -173,7 +173,7 @@ include("head.inc");
- 0) {
print_input_errors($input_errors);
} ?>
diff --git a/src/www/services_captiveportal_mac_edit.php b/src/www/services_captiveportal_mac_edit.php
index 3b12bc148..bbbe22c00 100644
--- a/src/www/services_captiveportal_mac_edit.php
+++ b/src/www/services_captiveportal_mac_edit.php
@@ -179,7 +179,7 @@ include("head.inc");
- 0) {
print_input_errors($input_errors);
} ?>
diff --git a/src/www/services_captiveportal_vouchers.php b/src/www/services_captiveportal_vouchers.php
index 70a0fefda..cc36d3efb 100644
--- a/src/www/services_captiveportal_vouchers.php
+++ b/src/www/services_captiveportal_vouchers.php
@@ -353,7 +353,7 @@ function enable_change(enable_change) {
- 0) {
print_input_errors($input_errors);
} ?>
- 0) {
print_input_errors($input_errors);
} ?>
- 0) {
print_input_errors($input_errors);
} ?>
diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php
index 3699526a7..a2c427611 100644
--- a/src/www/services_dhcp.php
+++ b/src/www/services_dhcp.php
@@ -679,7 +679,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dhcp_edit.php b/src/www/services_dhcp_edit.php
index 8668167c7..c4168856d 100644
--- a/src/www/services_dhcp_edit.php
+++ b/src/www/services_dhcp_edit.php
@@ -345,7 +345,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcp_relay.php b/src/www/services_dhcp_relay.php
index 12f737a72..af3c3a215 100644
--- a/src/www/services_dhcp_relay.php
+++ b/src/www/services_dhcp_relay.php
@@ -119,7 +119,7 @@ function enable_change(enable_over) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php
index 9615ec15f..064f3c1a5 100644
--- a/src/www/services_dhcpv6.php
+++ b/src/www/services_dhcpv6.php
@@ -442,7 +442,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dhcpv6_edit.php b/src/www/services_dhcpv6_edit.php
index e2e836f8e..4234bc9f2 100644
--- a/src/www/services_dhcpv6_edit.php
+++ b/src/www/services_dhcpv6_edit.php
@@ -177,7 +177,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcpv6_relay.php b/src/www/services_dhcpv6_relay.php
index 63646b5c1..d3f595704 100644
--- a/src/www/services_dhcpv6_relay.php
+++ b/src/www/services_dhcpv6_relay.php
@@ -120,7 +120,7 @@ function enable_change(enable_over) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dnsmasq.php b/src/www/services_dnsmasq.php
index d64202655..daa5f1279 100644
--- a/src/www/services_dnsmasq.php
+++ b/src/www/services_dnsmasq.php
@@ -169,7 +169,7 @@ function show_advanced_dns() {
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dnsmasq_domainoverride_edit.php b/src/www/services_dnsmasq_domainoverride_edit.php
index df021be9a..bd582b4de 100644
--- a/src/www/services_dnsmasq_domainoverride_edit.php
+++ b/src/www/services_dnsmasq_domainoverride_edit.php
@@ -120,7 +120,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dnsmasq_edit.php b/src/www/services_dnsmasq_edit.php
index 55e510640..ca43e9276 100644
--- a/src/www/services_dnsmasq_edit.php
+++ b/src/www/services_dnsmasq_edit.php
@@ -184,7 +184,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dyndns.php b/src/www/services_dyndns.php
index b5c9e8ea0..6f358ec80 100644
--- a/src/www/services_dyndns.php
+++ b/src/www/services_dyndns.php
@@ -64,7 +64,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dyndns_edit.php b/src/www/services_dyndns_edit.php
index c6d8f1d52..4c14d5fed 100644
--- a/src/www/services_dyndns_edit.php
+++ b/src/www/services_dyndns_edit.php
@@ -226,7 +226,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_igmpproxy_edit.php b/src/www/services_igmpproxy_edit.php
index c57734b4f..6756a6060 100644
--- a/src/www/services_igmpproxy_edit.php
+++ b/src/www/services_igmpproxy_edit.php
@@ -143,7 +143,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd.php b/src/www/services_ntpd.php
index 7ee200f84..aa3425458 100644
--- a/src/www/services_ntpd.php
+++ b/src/www/services_ntpd.php
@@ -211,7 +211,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd_gps.php b/src/www/services_ntpd_gps.php
index 6735614f2..005e2caef 100644
--- a/src/www/services_ntpd_gps.php
+++ b/src/www/services_ntpd_gps.php
@@ -351,7 +351,7 @@ SureGPS = #Sure Electronics SKG16B
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd_pps.php b/src/www/services_ntpd_pps.php
index ce852f123..fcf3f3a8b 100644
--- a/src/www/services_ntpd_pps.php
+++ b/src/www/services_ntpd_pps.php
@@ -99,7 +99,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_opendns.php b/src/www/services_opendns.php
index 25e0f8e7c..b8fa3d334 100644
--- a/src/www/services_opendns.php
+++ b/src/www/services_opendns.php
@@ -107,7 +107,7 @@ include 'head.inc';
0) {
print_input_errors($input_errors);
}
if (isset($savemsg)) {
diff --git a/src/www/services_rfc2136.php b/src/www/services_rfc2136.php
index 94742149f..dc9cc03d5 100644
--- a/src/www/services_rfc2136.php
+++ b/src/www/services_rfc2136.php
@@ -58,7 +58,7 @@ $main_buttons = array(
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_rfc2136_edit.php b/src/www/services_rfc2136_edit.php
index a851e799e..c90a8165f 100644
--- a/src/www/services_rfc2136_edit.php
+++ b/src/www/services_rfc2136_edit.php
@@ -125,7 +125,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_router_advertisements.php b/src/www/services_router_advertisements.php
index bd5155428..0a0f911a3 100644
--- a/src/www/services_router_advertisements.php
+++ b/src/www/services_router_advertisements.php
@@ -191,7 +191,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_snmp.php b/src/www/services_snmp.php
index 5f5fed224..ffb215aa7 100644
--- a/src/www/services_snmp.php
+++ b/src/www/services_snmp.php
@@ -271,7 +271,7 @@ function enable_change(whichone) {
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php
index b064ce174..0c63e482a 100644
--- a/src/www/services_unbound.php
+++ b/src/www/services_unbound.php
@@ -185,7 +185,7 @@ function show_advanced_dns() {
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_unbound_acls.php b/src/www/services_unbound_acls.php
index db9387548..a2f977d80 100644
--- a/src/www/services_unbound_acls.php
+++ b/src/www/services_unbound_acls.php
@@ -166,7 +166,7 @@ include("head.inc");
if (!$savemsg)
$savemsg = "";
- if (isset($input_errors))
+ if (isset($input_errors) && count($input_errors) > 0)
print_input_errors($input_errors);
if (isset($savemsg))
diff --git a/src/www/services_unbound_advanced.php b/src/www/services_unbound_advanced.php
index 9bf22f726..667ca0b93 100644
--- a/src/www/services_unbound_advanced.php
+++ b/src/www/services_unbound_advanced.php
@@ -126,7 +126,7 @@ include_once("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_unbound_domainoverride_edit.php b/src/www/services_unbound_domainoverride_edit.php
index 8d63b286c..1ad30de5a 100644
--- a/src/www/services_unbound_domainoverride_edit.php
+++ b/src/www/services_unbound_domainoverride_edit.php
@@ -115,7 +115,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_unbound_host_edit.php b/src/www/services_unbound_host_edit.php
index 9d9d1d3d1..703ff6382 100644
--- a/src/www/services_unbound_host_edit.php
+++ b/src/www/services_unbound_host_edit.php
@@ -184,7 +184,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_wol.php b/src/www/services_wol.php
index 51d3e8205..0f447ce2e 100644
--- a/src/www/services_wol.php
+++ b/src/www/services_wol.php
@@ -115,7 +115,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_wol_edit.php b/src/www/services_wol_edit.php
index 8a2d036d1..f5f634bf5 100644
--- a/src/www/services_wol_edit.php
+++ b/src/www/services_wol_edit.php
@@ -115,7 +115,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_filter_reload.php b/src/www/status_filter_reload.php
index dfdad4f15..c340f87b7 100644
--- a/src/www/status_filter_reload.php
+++ b/src/www/status_filter_reload.php
@@ -67,7 +67,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_gateway_groups.php b/src/www/status_gateway_groups.php
index 0f136ae40..d7ac560e8 100644
--- a/src/www/status_gateway_groups.php
+++ b/src/www/status_gateway_groups.php
@@ -56,7 +56,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_gateways.php b/src/www/status_gateways.php
index 964eab7af..60e7b4fca 100644
--- a/src/www/status_gateways.php
+++ b/src/www/status_gateways.php
@@ -48,7 +48,7 @@ include("head.inc");
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_graph.php b/src/www/status_graph.php
index 34c6eaeae..8ebb43d5c 100644
--- a/src/www/status_graph.php
+++ b/src/www/status_graph.php
@@ -191,7 +191,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
-
+ 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_rrd_graph_settings.php b/src/www/status_rrd_graph_settings.php
index 507a34cee..8510f42a5 100644
--- a/src/www/status_rrd_graph_settings.php
+++ b/src/www/status_rrd_graph_settings.php
@@ -111,7 +111,7 @@ include("head.inc");