Revision d2903c0c
Added by Jim Pingle over 14 years ago
usr/local/www/system_advanced_firewall.php | ||
---|---|---|
144 | 144 |
|
145 | 145 |
if($_POST['bypassstaticroutes'] == "yes") |
146 | 146 |
$config['filter']['bypassstaticroutes'] = $_POST['bypassstaticroutes']; |
147 |
else |
|
147 |
elseif(isset($config['filter']['bypassstaticroutes']))
|
|
148 | 148 |
unset($config['filter']['bypassstaticroutes']); |
149 | 149 |
|
150 | 150 |
if($_POST['disablescrub'] == "yes") |
Also available in: Unified diff
Test if a variable is set before trying to unset it. If a user has no rules in their config, then $config['filter'] would not be undefined, so unsettings $config['filter']['bypassstaticroutes'] would result in an error. http://forum.pfsense.org/index.php/topic,35702.0.html