Project

General

Profile

« Previous | Next » 

Revision 123ec43c

Added by Renato Botelho almost 5 years ago

$a_vtimaps is always an array

View differences:

src/usr/local/www/vpn_ipsec_phase1.php
494 494
		if ((($pconfig['iketype'] != $a_phase1[$p1index]['iketype']) ||
495 495
		    (isset($pconfig['splitconn']) != isset($a_phase1[$p1index]['splitconn']))) &&
496 496
		    ($vtisubnet_spec || is_array($vtisubnet_spec))) {
497
			if (is_array($a_vtimaps)) {
498
				foreach ($a_vtimaps as $id => $vtimap) {
499
					if ($vtimap['reqid'] == $ph1ent['ikeid']) {
500
						unset($a_vtimaps[$id]);
501
					}
497
			foreach ($a_vtimaps as $id => $vtimap) {
498
				if ($vtimap['reqid'] == $ph1ent['ikeid']) {
499
					unset($a_vtimaps[$id]);
502 500
				}
503 501
			}
504 502
			if (($pconfig['iketype'] == 'ikev1') || isset($pconfig['splitconn'])) {

Also available in: Unified diff