From 6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 27 Sep 2014 23:04:02 +0545 Subject: Clarify bracketing to minimize risk of a problem when adding code here in the future. --- usr/local/www/firewall_aliases_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 8a87d91..965d644 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -287,7 +287,7 @@ if ($_POST) { // This loop expands out that stuff so it can easily be validated. for($x=0; $x<4999; $x++) { if($_POST["address{$x}"] <> "") { - if ($_POST["detail{$x}"] <> "") + if ($_POST["detail{$x}"] <> "") { if ((strpos($_POST["detail{$x}"], "||") === false) && (substr($_POST["detail{$x}"], 0, 1) != "|") && (substr($_POST["detail{$x}"], -1, 1) != "|")) { $detail_text = $_POST["detail{$x}"]; } else { @@ -299,7 +299,7 @@ if ($_POST) { $desc_fmt_err_found = true; } } - else { + } else { $detail_text = sprintf(gettext("Entry added %s"), date('r')); } $address_items = explode(" ", trim($_POST["address{$x}"])); -- cgit v1.1