summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_gre_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/interfaces_gre_edit.php')
-rw-r--r--src/usr/local/www/interfaces_gre_edit.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/usr/local/www/interfaces_gre_edit.php b/src/usr/local/www/interfaces_gre_edit.php
index dc2a99f..0f9313c 100644
--- a/src/usr/local/www/interfaces_gre_edit.php
+++ b/src/usr/local/www/interfaces_gre_edit.php
@@ -66,8 +66,9 @@
require("guiconfig.inc");
require_once("functions.inc");
-if (!is_array($config['gres']['gre']))
+if (!is_array($config['gres']['gre'])) {
$config['gres']['gre'] = array();
+}
$a_gres = &$config['gres']['gre'];
@@ -168,8 +169,9 @@ if ($_POST) {
$confif = convert_real_interface_to_friendly_interface_name($gre['greif']);
- if ($confif != "")
+ if ($confif != "") {
interface_configure($confif);
+ }
header("Location: interfaces_gre.php");
exit;
@@ -180,18 +182,20 @@ if ($_POST) {
function build_parent_list() {
$parentlist = array();
$portlist = get_possible_listen_ips();
- foreach ($portlist as $ifn => $ifinfo)
+ foreach ($portlist as $ifn => $ifinfo) {
$parentlist[$ifn] = $ifinfo;
+ }
return($parentlist);
}
-$pgtitle = array(gettext("Interfaces"),gettext("GRE"),gettext("Edit"));
+$pgtitle = array(gettext("Interfaces"), gettext("GRE"), gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
$form = new Form();
OpenPOWER on IntegriCloud