summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-05 20:59:45 +0000
committerErmal <eri@pfsense.org>2010-08-05 21:00:11 +0000
commit06f3e447889d2dbae6891ee1b1e325829fd4e2ae (patch)
treea2969edcd8fff6c2a07f529e9e99f791385f9366 /etc/inc/shaper.inc
parent56a10568e860f4ac52ccdc2cdc873965b0a7e267 (diff)
downloadpfsense-06f3e447889d2dbae6891ee1b1e325829fd4e2ae.zip
pfsense-06f3e447889d2dbae6891ee1b1e325829fd4e2ae.tar.gz
Properly clear the qlimit or tbrconfig settings when a value is deleted from GUI
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 1a98b6e..7d95f82 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -333,6 +333,8 @@ class altq_root_queue {
function ReadConfig(&$conf) {
if (isset($conf['tbrconfig']))
$this->SetTbrConfig($conf['tbrconfig']);
+ else
+ $this->SetTbrConfig($conf['tbrconfig']);
$this->SetBandwidth($conf['bandwidth']);
if ($conf['bandwidthtype'] <> "")
$this->SetBwscale($conf['bandwidthtype']);
@@ -347,6 +349,8 @@ class altq_root_queue {
}
if (isset($conf['qlimit']) && $conf['qlimit'] <> "")
$this->SetQlimit($conf['qlimit']);
+ else
+ $this->SetQlimit("");
if (isset($conf['name']))
$this->SetQname($conf['name']);
if (!empty($conf['enabled']))
OpenPOWER on IntegriCloud