Project

General

Profile

« Previous | Next » 

Revision 6b2dcac5

Added by Ermal LUÇI almost 14 years ago

Resolves #1719. Prevent disabled client/servers from being displayed on the widget.

View differences:

etc/inc/openvpn.inc
780 780
	$servers = array();
781 781
	if (is_array($config['openvpn']['openvpn-server'])) {
782 782
		foreach ($config['openvpn']['openvpn-server'] as & $settings) {
783
	
783

  
784
			if (empty($settings) || isset($settings['disable']))
785
				continue;
786

  
784 787
			$prot = $settings['protocol'];
785 788
			$port = $settings['local_port'];
786 789
	
......
866 869
	if (is_array($config['openvpn']['openvpn-client'])) {
867 870
		foreach ($config['openvpn']['openvpn-client'] as & $settings) {
868 871
	
872
			if (empty($settings) || isset($settings['disable']))
873
				continue;
874

  
869 875
			$prot = $settings['protocol'];
870 876
			$port = $settings['local_port'];
871 877
	

Also available in: Unified diff