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') { ...@@ -392,7 +392,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$ph1ent['ikeid'] = ipsec_ikeid_next(); $ph1ent['ikeid'] = ipsec_ikeid_next();
} }
if (isset($p1index) && $a_phase1[$p1index]) { if (isset($p1index) && isset($a_phase1[$p1index])) {
$a_phase1[$p1index] = $ph1ent; $a_phase1[$p1index] = $ph1ent;
} else { } else {
$a_phase1[] = $ph1ent; $a_phase1[] = $ph1ent;
...@@ -1038,7 +1038,7 @@ endforeach; ?> ...@@ -1038,7 +1038,7 @@ endforeach; ?>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<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;?>" /> <input name="p1index" type="hidden" value="<?=$p1index;?>" />
<?php <?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