diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-03 17:27:49 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-03 17:27:49 +0000 |
commit | cf222376e2883217ad2b4420052d0552c7aa958b (patch) | |
tree | 07ba2fbe891360a0dabb02b387797c17328de9b7 /etc | |
parent | f5881023b3e4e6c4b7e7beef3002ce0aeebeab82 (diff) | |
download | pfsense-cf222376e2883217ad2b4420052d0552c7aa958b.zip pfsense-cf222376e2883217ad2b4420052d0552c7aa958b.tar.gz |
Relax some very strict cases.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 65fabe5..2de44aa 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -351,7 +351,7 @@ class altq_root_queue { $this->SetQlimit($conf['qlimit']); if (isset($conf['name'])) $this->SetQname($conf['name']); - if (!empty($conf['enabled']) && $conf['enabled'] == "enabled") + if (!empty($conf['enabled'])) $this->SetEnabled($conf['enabled']); } @@ -957,15 +957,15 @@ class priq_queue { $this->SetQPriority($q['priority']); if (!empty($q['description'])) $this->SetDescription($q['description']); - if (!empty($q['red']) && $q['red'] == "red") + if (!empty($q['red'])) $this->SetRed($q['red']); - if (!empty($q['rio']) && $q['rio'] == "rio") + if (!empty($q['rio'])) $this->SetRio($q['rio']); - if (!empty($q['ecn']) && $q['ecn'] == "ecn") + if (!empty($q['ecn'])) $this->SetEcn($q['ecn']); - if (!empty($q['default']) && $q['default'] == "default") + if (!empty($q['default'])) $this->SetDefault($q['default']); - if (!empty($q['enabled']) && $q['enabled'] == "enabled") + if (!empty($q['enabled'])) $this->SetEnabled($q['enabled']); } |