summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/vpn_ipsec_phase2.php
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-09 08:11:46 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-09 08:11:46 -0600
commit3166d0c83e1026e7e49afe481a103f1673d6baf0 (patch)
treea93366ffd9f7b80844e046b7571a1ae3995c421c /src/usr/local/www/vpn_ipsec_phase2.php
parent98a134417ecce0a875555320003a6b44c6826cb6 (diff)
downloadpfsense-3166d0c83e1026e7e49afe481a103f1673d6baf0.zip
pfsense-3166d0c83e1026e7e49afe481a103f1673d6baf0.tar.gz
Fix the warning when no HASH algorithm is selected (together with AES-GCM).
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_phase2.php')
-rw-r--r--src/usr/local/www/vpn_ipsec_phase2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/vpn_ipsec_phase2.php b/src/usr/local/www/vpn_ipsec_phase2.php
index d1b1e81..2f0add8 100644
--- a/src/usr/local/www/vpn_ipsec_phase2.php
+++ b/src/usr/local/www/vpn_ipsec_phase2.php
@@ -674,7 +674,7 @@ foreach ($p2_halgos as $algo => $algoname) {
'halgos[]',
null,
$algoname,
- (in_array($algo, $pconfig['halgos'])),
+ (empty($pconfig['halgos']) ? '' : in_array($algo, $pconfig['halgos'])),
$algo
))->addClass('multi');
}
OpenPOWER on IntegriCloud