diff options
author | Ermal <eri@pfsense.org> | 2010-08-05 20:59:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-05 21:00:11 +0000 |
commit | 06f3e447889d2dbae6891ee1b1e325829fd4e2ae (patch) | |
tree | a2969edcd8fff6c2a07f529e9e99f791385f9366 /etc | |
parent | 56a10568e860f4ac52ccdc2cdc873965b0a7e267 (diff) | |
download | pfsense-06f3e447889d2dbae6891ee1b1e325829fd4e2ae.zip pfsense-06f3e447889d2dbae6891ee1b1e325829fd4e2ae.tar.gz |
Properly clear the qlimit or tbrconfig settings when a value is deleted from GUI
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 4 |
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'])) |