diff options
author | Ermal <eri@pfsense.org> | 2011-01-19 21:23:27 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-19 21:23:27 +0000 |
commit | daacb81809e8022fdc9e393eaa3b594ecea4d518 (patch) | |
tree | b18e025d3cafe78f6e1c92e1f183e0b528a2f6ed | |
parent | c2461a56d45b678213488ea1ced099a38ead267e (diff) | |
download | pfsense-daacb81809e8022fdc9e393eaa3b594ecea4d518.zip pfsense-daacb81809e8022fdc9e393eaa3b594ecea4d518.tar.gz |
Ticket #1210. Also here unset any previous value if none posted.
-rw-r--r-- | etc/inc/shaper.inc | 8 |
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']); } |