diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:05:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:05:22 +0000 |
commit | e8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9 (patch) | |
tree | 4822fa79a39dc8b7881df402c5afa708739ab6ad /usr/local/www | |
parent | fdb19d5ef434369491261d6860ae50015b81c7ab (diff) | |
download | pfsense-e8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9.zip pfsense-e8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9.tar.gz |
unset bandwidthtype type if no bandwidth is specified
This resolves Ticket #30
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_shaper_queues_edit.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php index 1ab776a..1850bba 100755 --- a/usr/local/www/firewall_shaper_queues_edit.php +++ b/usr/local/www/firewall_shaper_queues_edit.php @@ -102,6 +102,8 @@ if ($_POST) { $queue['bandwidthtype'] = $_POST['bandwidthtype'];\ if($_POST['bandwidth'] == "") unset($queue['bandwidthtype']); + if($_POST['bandwidthtype'] == "") + unset($queue['bandwidth']); $queue['priority'] = $_POST['priority']; $queue['name'] = ereg_replace(" ", "", $_POST['name']); $queue['name'] = substr($queue['name'], 0, 15); |