Commit d603d3bf authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix edit on vpn_ipsec_phase1 after changes

parent 719fd67c
......@@ -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; ?>
<tr>
<td>&nbsp;</td>
<td>
<?php if (isset($p1index) && isset($a_phase1[$p1index]) && !(isset($_GET['dup']) && is_numericint($_GET['dup']))) :
<?php if (isset($p1index) && isset($config['ipsec']['phase1'][$p1index]) && !isset($_GET['dup'])) :
?>
<input name="p1index" type="hidden" value="<?=$p1index;?>" />
<?php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment