summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_ipsec_spd.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/status_ipsec_spd.php')
-rw-r--r--src/usr/local/www/status_ipsec_spd.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/status_ipsec_spd.php b/src/usr/local/www/status_ipsec_spd.php
index 464408b..613b2c3 100644
--- a/src/usr/local/www/status_ipsec_spd.php
+++ b/src/usr/local/www/status_ipsec_spd.php
@@ -104,10 +104,11 @@ if (count($spd)) {
<tbody>
<?php
foreach ($spd as $sp) {
- if ($sp['dir'] == 'in')
+ if ($sp['dir'] == 'in') {
$dirstr = LEFTARROW . ' Inbound';
- else
+ } else {
$dirstr = RIGHTARROW . ' Outbound';
+ }
?>
<tr>
<td>
@@ -133,8 +134,7 @@ if (count($spd)) {
</table>
</div>
<?php
- } // e-o-if (count($spd))
-else {
+} else {
print_info_box(gettext('No IPsec security policies configured.'));
}
OpenPOWER on IntegriCloud