From d603d3bf9fe66ca5887b5b0107eca55ff2a49f51 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 11 Aug 2015 13:41:27 +0000 Subject: [PATCH] (legacy) fix edit on vpn_ipsec_phase1 after changes --- src/www/vpn_ipsec_phase1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; ?>   -