Project

General

Profile

« Previous | Next » 

Revision 62ce3b9a

Added by Scott Ullrich about 20 years ago

Remove double bridge safety checks

Ticket #354

View differences:

usr/local/www/interfaces_opt.php
105 105
			for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
106 106
				if ($i != $index) {
107 107
					if ($config['interfaces']['opt' . $i]['bridge'] == $_POST['bridge']) {
108
						$input_errors[] = "Optional interface {$i} " .
109
							"({$config['interfaces']['opt' . $i]['descr']}) is already bridged to " .
110
							"the specified interface.";
108
						//$input_errors[] = "Optional interface {$i} " .
109
						//	"({$config['interfaces']['opt' . $i]['descr']}) is already bridged to " .
110
						//	"the specified interface.";
111 111
					} else if ($config['interfaces']['opt' . $i]['bridge'] == "opt{$index}") {
112
						$input_errors[] = "Optional interface {$i} " .
113
							"({$config['interfaces']['opt' . $i]['descr']}) is already bridged to " .
114
							"this interface.";
112
						//$input_errors[] = "Optional interface {$i} " .
113
						//	"({$config['interfaces']['opt' . $i]['descr']}) is already bridged to " .
114
						//	"this interface.";
115 115
					}
116 116
				}
117 117
			}
118 118
			if ($config['interfaces'][$_POST['bridge']]['bridge']) {
119
				$input_errors[] = "The specified interface is already bridged to " .
120
					"another interface.";
119
				//$input_errors[] = "The specified interface is already bridged to " .
120
				//	"another interface.";
121 121
			}
122 122
			/* captive portal on? */
123 123
			if (isset($config['captiveportal']['enable'])) {

Also available in: Unified diff