diff --git a/src/www/vpn_ipsec_phase1.php b/src/www/vpn_ipsec_phase1.php index c277b812c..652a4b496 100644 --- a/src/www/vpn_ipsec_phase1.php +++ b/src/www/vpn_ipsec_phase1.php @@ -392,7 +392,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $ph1ent['ikeid'] = ipsec_ikeid_next(); } - if (isset($p1index) && $a_phase1[$p1index]) { + if (isset($p1index) && isset($a_phase1[$p1index])) { $a_phase1[$p1index] = $ph1ent; } else { $a_phase1[] = $ph1ent; @@ -1038,7 +1038,7 @@ endforeach; ?>   -