diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:00:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-26 22:00:10 +0000 |
commit | fdb19d5ef434369491261d6860ae50015b81c7ab (patch) | |
tree | feb8818641d85deea6b5aa25351d47c4595677d3 /usr | |
parent | c668c964b4cffc6d325eb844d1ec48f8cb7c9366 (diff) | |
download | pfsense-fdb19d5ef434369491261d6860ae50015b81c7ab.zip pfsense-fdb19d5ef434369491261d6860ae50015b81c7ab.tar.gz |
unset bandwidth type if no bandwidth is specified
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_shaper_queues_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/firewall_shaper_queues_edit.php b/usr/local/www/firewall_shaper_queues_edit.php index a2bab14..1ab776a 100755 --- a/usr/local/www/firewall_shaper_queues_edit.php +++ b/usr/local/www/firewall_shaper_queues_edit.php @@ -99,7 +99,9 @@ if ($_POST) { $queue = array(); $queue['schedulertype'] = $_POST['schedulertype']; $queue['bandwidth'] = $_POST['bandwidth']; - $queue['bandwidthtype'] = $_POST['bandwidthtype']; + $queue['bandwidthtype'] = $_POST['bandwidthtype'];\ + if($_POST['bandwidth'] == "") + unset($queue['bandwidthtype']); $queue['priority'] = $_POST['priority']; $queue['name'] = ereg_replace(" ", "", $_POST['name']); $queue['name'] = substr($queue['name'], 0, 15); |