diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-15 16:44:40 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-15 16:44:40 +0545 |
commit | aa82505e6577c28894150a6fb53c58f914930331 (patch) | |
tree | 3c4bc4b73d4dcd4e4e1d87d8acb5068ea14cacf8 /src/usr/local/www/interfaces_assign.php | |
parent | 7895a8802317a8477929bea6428bf8dfe214306f (diff) | |
download | pfsense-aa82505e6577c28894150a6fb53c58f914930331.zip pfsense-aa82505e6577c28894150a6fb53c58f914930331.tar.gz |
Code style g-i
Diffstat (limited to 'src/usr/local/www/interfaces_assign.php')
-rw-r--r-- | src/usr/local/www/interfaces_assign.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/local/www/interfaces_assign.php b/src/usr/local/www/interfaces_assign.php index 377741d..7acc006 100644 --- a/src/usr/local/www/interfaces_assign.php +++ b/src/usr/local/www/interfaces_assign.php @@ -410,8 +410,9 @@ if (isset($_POST['add']) && isset($_POST['if_add'])) { } } else { unset($delbtn); - if (!empty($_POST['del'])) + if (!empty($_POST['del'])) { $delbtn = key($_POST['del']); + } if (isset($delbtn)) { $id = $delbtn; @@ -507,8 +508,9 @@ if (file_exists("/tmp/reload_interfaces")) { pfSense_handle_custom_code("/usr/local/pkg/interfaces_assign/pre_input_errors"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} $tab_array = array(); $tab_array[] = array(gettext("Interface assignments"), true, "interfaces_assign.php"); @@ -535,10 +537,11 @@ display_top_tabs($tab_array); <tbody> <?php foreach ($config['interfaces'] as $ifname => $iface): - if ($iface['descr']) + if ($iface['descr']) { $ifdescr = $iface['descr']; - else + } else { $ifdescr = strtoupper($ifname); + } ?> <tr> <td><a href="/interfaces.php?if=<?=$ifname?>"><?=$ifdescr?></a></td> |