diff options
author | Ermal <eri@pfsense.org> | 2011-01-19 21:20:50 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-19 21:20:50 +0000 |
commit | c2461a56d45b678213488ea1ced099a38ead267e (patch) | |
tree | 5c74601028b656389d3d06b3a778a1b1fc5dcaf9 /etc/inc/shaper.inc | |
parent | f5bafe95a1fb4372288816debaa21b4f943a32e8 (diff) | |
download | pfsense-c2461a56d45b678213488ea1ced099a38ead267e.zip pfsense-c2461a56d45b678213488ea1ced099a38ead267e.tar.gz |
If no value is posted means we have no value to save in config and should unset any pervious set ones.
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 692f1a5..5e7a454 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -2867,16 +2867,28 @@ class dnpipe_class extends dummynet_class { } 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['buckets']) && $q['buckets'] <> "") $this->SetBuckets($q['buckets']); + else + $this->SetBuckets(""); if (isset($q['plr']) && $q['plr'] <> "") $this->SetPlr($q['plr']); + else + $this->SetPlr(""); if (isset($q['delay']) && $q['delay'] <> "") $this->SetDelay($q['delay']); + else + $this->SetDelay(0); if (isset($q['description']) && $q['description'] <> "") $this->SetDescription($q['description']); + else + $this->SetDescription(""); $this->SetEnabled($q['enabled']); } @@ -4004,4 +4016,4 @@ $dn_default_shaper_msg .= "buttons at the bottom represent queue actions and are $dn_default_shaper_msg .= " </p></strong></span>"; $dn_default_shaper_msg .= "</td></tr>"; -?>
\ No newline at end of file +?> |