diff --git a/src/www/vpn_ipsec.php b/src/www/vpn_ipsec.php index 4f495b4fa..3310aad40 100644 --- a/src/www/vpn_ipsec.php +++ b/src/www/vpn_ipsec.php @@ -438,7 +438,9 @@ $( document ).ready(function() { 'rsasig' => array( 'name' => 'Mutual RSA', 'mobile' => false ), 'pre_shared_key' => array( 'name' => 'Mutual PSK', 'mobile' => false ) ); ?> - =$p1_authentication_methods[$ph1ent['authentication_method']]['name'];?> + =!empty($p1_authentication_methods[$ph1ent['authentication_method']]['name']) ? + $p1_authentication_methods[$ph1ent['authentication_method']]['name'] : + strtoupper($ph1ent['authentication_method']);?>