Commit f47013c9 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix Undefined index: span in /usr/local/etc/inc/interfaces.inc on line 660

parent 31207371
......@@ -657,7 +657,7 @@ function interface_bridge_configure(&$bridge, $checkmember = 0)
if ($bridge['timeout'] <> "") {
mwexec("/sbin/ifconfig {$bridgeif} timeout " . escapeshellarg($bridge['timeout']));
}
if ($bridge['span'] <> "") {
if (!empty($bridge['span'])) {
$realif = get_real_interface($bridge['span']);
mwexec("/sbin/ifconfig {$bridgeif} span {$realif}");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment