diff options
author | Ermal <eri@pfsense.org> | 2014-08-18 23:15:38 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-08-18 23:15:38 +0200 |
commit | 9694d32c675f1ed6cc515119bce12f957c0dd7be (patch) | |
tree | ec892ae650e065442ca5524fb39f05e7806c6208 /usr/local | |
parent | 17402c638d800441a16db7b5f5c2b8a373b9abca (diff) | |
download | pfsense-9694d32c675f1ed6cc515119bce12f957c0dd7be.zip pfsense-9694d32c675f1ed6cc515119bce12f957c0dd7be.tar.gz |
Do this check now that hash algos can be empty
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/vpn_ipsec.php | 10 |
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;?> |