add a check to avoid foreach on non-array

This commit is contained in:
Chris Buechler 2015-07-27 01:57:50 -05:00
parent 5e11c6a176
commit 56fd056b9a

View File

@ -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'];