summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-26 22:00:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-26 22:00:10 +0000
commitfdb19d5ef434369491261d6860ae50015b81c7ab (patch)
treefeb8818641d85deea6b5aa25351d47c4595677d3 /usr/local/www/firewall_shaper_queues_edit.php
parentc668c964b4cffc6d325eb844d1ec48f8cb7c9366 (diff)
downloadpfsense-fdb19d5ef434369491261d6860ae50015b81c7ab.zip
pfsense-fdb19d5ef434369491261d6860ae50015b81c7ab.tar.gz
unset bandwidth type if no bandwidth is specified
Diffstat (limited to 'usr/local/www/firewall_shaper_queues_edit.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues_edit.php4
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);
OpenPOWER on IntegriCloud