summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-08-18 23:15:38 +0200
committerErmal <eri@pfsense.org>2014-08-18 23:15:38 +0200
commit9694d32c675f1ed6cc515119bce12f957c0dd7be (patch)
treeec892ae650e065442ca5524fb39f05e7806c6208 /usr/local/www/vpn_ipsec.php
parent17402c638d800441a16db7b5f5c2b8a373b9abca (diff)
downloadpfsense-9694d32c675f1ed6cc515119bce12f957c0dd7be.zip
pfsense-9694d32c675f1ed6cc515119bce12f957c0dd7be.tar.gz
Do this check now that hash algos can be empty
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rw-r--r--usr/local/www/vpn_ipsec.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 587c048..62e7dc5 100644
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -374,10 +374,12 @@ include("head.inc");
<td class="listr nowrap">
<?=$spans;?>
<?php
- foreach ($ph2ent['hash-algorithm-option'] as $k => $ph2ha) {
- if ($k)
- echo ", ";
- echo $p2_halgos[$ph2ha];
+ if (!empty($ph2ent['hash-algorithm-option']) && is_array($ph2ent['hash-algorithm-option'])) {
+ foreach ($ph2ent['hash-algorithm-option'] as $k => $ph2ha) {
+ if ($k)
+ echo ", ";
+ echo $p2_halgos[$ph2ha];
+ }
}
?>
<?=$spane;?>
OpenPOWER on IntegriCloud