mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
add a check to avoid foreach on non-array
This commit is contained in:
parent
5e11c6a176
commit
56fd056b9a
@ -3604,6 +3604,10 @@ function upgrade_117_to_118() {
|
||||
function upgrade_118_to_119() {
|
||||
global $config;
|
||||
|
||||
if (!isset($config['ipsec']['phase1'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
// change peerid_type to 'any' for EAP types to retain previous behavior of omitting rightid
|
||||
$a_phase1 =& $config['ipsec']['phase1'];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user