Foreach only if it is an array to be on the safe side.

This commit is contained in:
Ermal Luçi 2008-07-16 19:38:22 +00:00
parent d62ba478cd
commit afaf2b2eda

View File

@ -2507,7 +2507,8 @@ EOD;
*/
$prot_used_esp = false;
$prot_used_ah = false;
if (is_array($config['ipsec']['phase2']))
foreach ($config['ipsec']['phase2'] as $ph2ent) {
/* only evaluate ph2's bound to our ph1 */