mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
isset fixes in vpn_ipsec_phase2.php
This commit is contained in:
parent
3c2430668d
commit
4370f811af
@ -79,10 +79,10 @@ function ealgos_to_pconfig(& $ealgos, & $pconfig)
|
||||
*/
|
||||
function pconfig_to_idinfo($prefix, $pconfig)
|
||||
{
|
||||
$type = $pconfig[$prefix."id_type"];
|
||||
$type = isset($pconfig[$prefix."id_type"]) ? $pconfig[$prefix."id_type"] : null;
|
||||
$address = isset($pconfig[$prefix."id_address"]) ? $pconfig[$prefix."id_address"] : null;
|
||||
$netbits = isset($pconfig[$prefix."id_netbits"]) ? $pconfig[$prefix."id_netbits"] : null;
|
||||
$nattype = $pconfig[$prefix."id_nattype"];
|
||||
$nattype = isset($pconfig[$prefix."id_nattype"]) ? $pconfig[$prefix."id_nattype"] : null;
|
||||
|
||||
switch ($type) {
|
||||
case "address":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user