summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-19 21:23:27 +0000
committerErmal <eri@pfsense.org>2011-01-19 21:23:27 +0000
commitdaacb81809e8022fdc9e393eaa3b594ecea4d518 (patch)
treeb18e025d3cafe78f6e1c92e1f183e0b528a2f6ed /etc/inc/shaper.inc
parentc2461a56d45b678213488ea1ced099a38ead267e (diff)
downloadpfsense-daacb81809e8022fdc9e393eaa3b594ecea4d518.zip
pfsense-daacb81809e8022fdc9e393eaa3b594ecea4d518.tar.gz
Ticket #1210. Also here unset any previous value if none posted.
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 5e7a454..6ae5ab6 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3149,12 +3149,20 @@ class dnqueue_class extends dummynet_class {
$this->SetNumber($q['number']);
if (isset($q['qlimit']) && $q['qlimit'] <> "")
$this->SetQlimit($q['qlimit']);
+ else
+ $this->SetQlimit("");
if (isset($q['mask']) && $q['mask'] <> "")
$this->SetMask($q['mask']);
+ else
+ $this->SetMask("");
if (isset($q['weight']) && $q['weight'] <> "")
$this->SetWeight($q['weight']);
+ else
+ $this->SetWeight("");
if (isset($q['description']) && $q['description'] <> "")
$this->SetDescription($q['description']);
+ else
+ $this->SetDescription("");
$this->SetEnabled($q['enabled']);
}
OpenPOWER on IntegriCloud