Project

General

Profile

« Previous | Next » 

Revision 588d3cf6

Added by Renato Botelho over 10 years ago

Check if it's an array before call foreach(). Ticket

View differences:

etc/inc/vpn.inc
382 382
			$strongswan .= "\t\t\tnbns = " . implode(",", $cfgservers) . "\n";
383 383
		unset($cfgservers);
384 384

  
385
		if (isset($a_client['net_list'])) {
385
		if (isset($a_client['net_list']) && is_array($a_phase2)) {
386 386
			$net_list = '';
387 387
			foreach ($a_phase2 as $ph2ent) {
388 388
				if (isset($ph2ent['disabled']))

Also available in: Unified diff