Project

General

Profile

« Previous | Next » 

Revision a1cab2c7

Added by Ermal LUÇI over 15 years ago

Ticket #474. Properly check for disabled openvpn configs.

View differences:

etc/inc/openvpn.inc
266 266

  
267 267
	if (empty($settings))
268 268
		return;
269
	if ($settings['disable']) 
269
	if (isset($settings['disable'])) 
270 270
		return;
271 271

  
272 272
	/*
......
559 559
			usleep(250000);
560 560
	}
561 561

  
562
	if ($settings['disable'])
562
	if (isset($settings['disable']))
563 563
		return;
564 564

  
565 565
	/* start the new process */
......
607 607

  
608 608
	$fpath = $g['varetc_path']."/openvpn-csc/".$settings['common_name'];
609 609

  
610
	if ($settings['disable']) {
610
	if (isset($settings['disable'])) {
611 611
		unlink_if_exists($fpath);
612 612
		return;
613 613
	}

Also available in: Unified diff