From e6f2d95b89fdb8352a1dc0a2ead3824a59f49f86 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 16 Apr 2016 15:47:19 -0500 Subject: Remove redundant if check. --- src/usr/local/www/firewall_rules_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr/local/www/firewall_rules_edit.php') diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index c630435..ee9b557 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -456,7 +456,7 @@ if ($_POST) { if ($_POST['proto'] != "tcp") { $input_errors[] = sprintf(gettext("%s is only valid with protocol TCP."), $_POST['statetype']); } - if (($_POST['statetype'] == "synproxy state") && ($_POST['gateway'] != "")) { + if ($_POST['gateway'] != "") { $input_errors[] = sprintf(gettext("%s is only valid if the gateway is set to 'default'."), $_POST['statetype']); } } -- cgit v1.1