summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-26 22:05:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-26 22:05:22 +0000
commite8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9 (patch)
tree4822fa79a39dc8b7881df402c5afa708739ab6ad /usr/local
parentfdb19d5ef434369491261d6860ae50015b81c7ab (diff)
downloadpfsense-e8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9.zip
pfsense-e8bb1f3bc5c82c080b6edb4ee3b40b36d5a014e9.tar.gz
unset bandwidthtype type if no bandwidth is specified
This resolves Ticket #30
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_shaper_queues_edit.php2
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);
OpenPOWER on IntegriCloud