path: root/usr/local/www
diff options
authorPhil Davis <>2015-07-12 14:38:46 +0545
committerPhil Davis <>2015-07-12 14:38:46 +0545
commit0c53abc2b765ccd8b965dc4228226bd0315d8f94 (patch)
tree11b28423397fd021a3f119f23f975da11f443732 /usr/local/www
parentfd29caa1c8bc3aa547c50e4842aecd7314cc8d89 (diff)
Firewall Aliases Edit ensure input_addresses array exists
If you click "+" to add an alias, then press Save without entering anything, you get: Warning: Invalid argument supplied for foreach() in /usr/local/www/firewall_aliases_edit.php on line 402 as well as the various messages related to $input_errors. This change ensures that $input_addresses array always exists (even if it has no real entries) so that the foreach() warning does not happen.
Diffstat (limited to 'usr/local/www')
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index d78c500..44dcd6c 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -273,6 +273,7 @@ if ($_POST) {
$wrongaliases = "";
$desc_fmt_err_found = false;
$alias_address_count = 0;
+ $input_addresses = array();
// First trim and expand the input data.
// Users can paste strings like "" into an address box.
OpenPOWER on IntegriCloud